Skip to content

Commit

Permalink
address permission issue with run_jedi_exe_letkf (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Feb 3, 2023
1 parent 221a99d commit 1893d66
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ush/ufsda/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,12 @@ def background_ens(config):
mkdir(jedi_bkg_mem)

# copy RESTART to RESTART_GES
try:
shutil.copytree(rst_dir, ges_dir)
except FileExistsError:
shutil.rmtree(ges_dir)
shutil.copytree(rst_dir, ges_dir)
if not os.path.exists(ges_dir):
try:
shutil.copytree(rst_dir, ges_dir)
except FileExistsError:
shutil.rmtree(ges_dir)
shutil.copytree(rst_dir, ges_dir)
try:
os.symlink(ges_dir, jedi_bkg_dir)
except FileExistsError:
Expand Down

0 comments on commit 1893d66

Please sign in to comment.