From 6e2801321644ac5bba815c71e165aafa945b84dd Mon Sep 17 00:00:00 2001 From: James Edwards Date: Wed, 21 Feb 2024 07:15:56 -0700 Subject: [PATCH] need to make sure the directory exists before linking to it --- CIME/SystemTests/eri.py | 3 ++- CIME/non_py/cprnc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CIME/SystemTests/eri.py b/CIME/SystemTests/eri.py index 272a3881add..8d38c111578 100644 --- a/CIME/SystemTests/eri.py +++ b/CIME/SystemTests/eri.py @@ -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): diff --git a/CIME/non_py/cprnc b/CIME/non_py/cprnc index 9276b219750..e3eaa5346ec 160000 --- a/CIME/non_py/cprnc +++ b/CIME/non_py/cprnc @@ -1 +1 @@ -Subproject commit 9276b219750881633d8673c72ec80ac821f96d82 +Subproject commit e3eaa5346ecd50aef8b60fdf54b98cb1c13a24b1