mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
_orig_dir -> orig_dir
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
39b008df26
commit
5d5a2d6fa5
1 changed files with 3 additions and 2 deletions
|
|
@ -67,13 +67,14 @@ def change_directory(output_dir):
|
|||
output_dir : pathlib.Path
|
||||
Directory to switch to.
|
||||
"""
|
||||
_orig_dir = os.getcwd()
|
||||
orig_dir = os.getcwd()
|
||||
try:
|
||||
output_dir.mkdir(exist_ok=True)
|
||||
os.chdir(output_dir)
|
||||
yield
|
||||
finally:
|
||||
os.chdir(_orig_dir)
|
||||
os.chdir(orig_dir)
|
||||
|
||||
|
||||
class TransportOperator(ABC):
|
||||
"""Abstract class defining a transport operator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue