Skip to content

Commit

Permalink
Fix --copy_executable
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Jul 19, 2024
1 parent 1cdd67f commit 4e89091
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions polaris/model_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,12 @@ def _process_model(config, base_work_dir):
copy_executable = config.getboolean('setup', 'copy_executable')
if copy_executable:
# make a copy of the model executable, then link to that
mpas_subdir = os.path.basename(
config.get('paths', 'mpas_model'))
mpas_workdir = os.path.join(base_work_dir, mpas_subdir)
target = os.path.join(mpas_workdir, filename)
component_subdir = os.path.basename(
config.get('paths', 'component_path'))
component_workdir = os.path.join(base_work_dir, component_subdir)
target = os.path.join(component_workdir, filename)
try:
os.makedirs(mpas_workdir)
os.makedirs(component_workdir)
except FileExistsError:
pass

Expand Down

0 comments on commit 4e89091

Please sign in to comment.