Skip to content

Commit

Permalink
need to make sure the directory exists before linking to it
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Feb 21, 2024
1 parent 12142ee commit 6e28013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CIME/SystemTests/eri.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def _get_rest_date(archive_root):

def _helper(dout_sr, refdate, refsec, rundir):
rest_path = os.path.join(dout_sr, "rest", "{}-{}".format(refdate, refsec))

if not os.path.exists(rundir):
os.makedirs(rundir)
for item in glob.glob("{}/*{}*".format(rest_path, refdate)):
dst = os.path.join(rundir, os.path.basename(item))
if os.path.exists(dst):
Expand Down
2 changes: 1 addition & 1 deletion CIME/non_py/cprnc
Submodule cprnc updated 1 files
+2 −2 cmake/FindNetCDF.cmake

0 comments on commit 6e28013

Please sign in to comment.