Skip to content

Commit 6e708cb

Browse files
committed
Minor: Added exist_ok to project directory os.makedirs in main
1 parent e2533a0 commit 6e708cb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arc/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ def __init__(self,
281281
self.verbose = verbose
282282
self.project_directory = project_directory if project_directory is not None \
283283
else os.path.join(ARC_PATH, 'Projects', self.project)
284-
if not os.path.exists(self.project_directory):
285-
os.makedirs(self.project_directory)
284+
os.makedirs(self.project_directory, exist_ok=True)
286285
self.output = output
287286
self.output_multi_spc = output_multi_spc
288287
self.standardize_output_paths() # depends on self.project_directory

0 commit comments

Comments
 (0)