Skip to content

Commit

Permalink
improved handling of user_mods_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Sep 2, 2016
1 parent 2a1f3ea commit 75309c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/create_newcase
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ def _main_func():

# Write out the case files
case.flush(flushall=True)
if user_mods_dir is not None and user_mods_dir.startswith(".."):
user_mods_dir = os.path.abspath(user_mods_dir)

case.apply_user_mods(user_mods_dir)
if user_mods_dir is not None:
if os.path.isdir(user_mods_dir):
user_mods_dir = os.path.abspath(user_mods_dir)
case.apply_user_mods(user_mods_dir)

# Copy env_case.xml into LockedFiles
copyfile(os.path.join(caseroot,"env_case.xml"),
Expand Down

0 comments on commit 75309c3

Please sign in to comment.