Skip to content

Commit

Permalink
Q-Chem fix os.mkdir -> os.makedirs (#293)
Browse files Browse the repository at this point in the history
* fix os.mkdir -> os.makedirs

---------

Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
  • Loading branch information
samblau and janosh authored Sep 23, 2023
1 parent 4d78d09 commit 753e54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custodian/qchem/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def run(self):
os.mkdir(local_scratch)
shutil.move(os.path.join(os.environ["QCSCRATCH"], "132.0"), local_scratch)
if os.path.exists(os.path.join(os.environ["QCSCRATCH"], "53.0")):
os.mkdir(local_scratch, exist_ok=True)
os.makedirs(local_scratch, exist_ok=True)
shutil.move(os.path.join(os.environ["QCSCRATCH"], "53.0"), local_scratch)
with open(self.qclog_file, "w") as qclog:
return subprocess.Popen(self.current_command, stdout=qclog, shell=True) # pylint: disable=R1732
Expand Down

0 comments on commit 753e54c

Please # to comment.