Skip to content

Commit a90fd47

Browse files
authored
Fix working directory creation (#454)
1 parent d6bbed9 commit a90fd47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pysqa/base/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ def _write_queue_script(
394394
command=command,
395395
**kwargs,
396396
)
397-
if not os.path.exists(working_directory):
398-
os.makedirs(working_directory)
397+
os.makedirs(working_directory, exist_ok=True)
399398
queue_script_path = os.path.join(working_directory, "run_queue.sh")
400399
with open(queue_script_path, "w") as f:
401400
f.writelines(queue_script)

0 commit comments

Comments
 (0)