mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
creating parent dirs for output_dir (#2543)
This commit is contained in:
parent
4c69d913bb
commit
74fb2801c2
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def change_directory(output_dir):
|
|||
"""
|
||||
orig_dir = os.getcwd()
|
||||
try:
|
||||
output_dir.mkdir(exist_ok=True)
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
os.chdir(output_dir)
|
||||
yield
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue