Skip to content

Commit

Permalink
Merge 5c782ea into 2730358
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavransky committed Nov 1, 2023
2 parents 2730358 + 5c782ea commit 0862095
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EXOSIMS/util/get_dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_exosims_dir(dirtype: str, indir: Optional[str] = None) -> str:
# if it doesn't exist, try creating it
if not (os.path.isdir(indir)):
try:
os.mkdir(indir)
os.makedirs(indir)
except PermissionError:
print("Cannot create directory: {}".format(indir))

Expand All @@ -139,7 +139,7 @@ def get_exosims_dir(dirtype: str, indir: Optional[str] = None) -> str:

if not (os.path.isdir(envdir)):
try:
os.mkdir(envdir)
os.makedirs(envdir)
except PermissionError:
print("Cannot create directory: {}".format(envdir))

Expand All @@ -153,14 +153,14 @@ def get_exosims_dir(dirtype: str, indir: Optional[str] = None) -> str:
path = os.path.join(home, ".EXOSIMS")
if not os.path.isdir(path):
try:
os.mkdir(path)
os.makedirs(path)
except PermissionError:
print("Cannot create directory: {}".format(path))

outdir = os.path.join(path, dirtype)
if not os.path.isdir(outdir):
try:
os.mkdir(outdir)
os.makedirs(outdir)
except PermissionError:
print("Cannot create directory: {}".format(outdir))

Expand Down

0 comments on commit 0862095

Please sign in to comment.