Skip to content

Commit

Permalink
Restore runpath test
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-aarstad committed Dec 11, 2024
1 parent 43eedff commit c3f02ba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/everest/bin/everest_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from everest.util import (
makedirs_if_needed,
version_info,
warn_user_that_runpath_is_nonempty,
)

from .utils import (
Expand Down Expand Up @@ -113,8 +114,12 @@ async def run_everest(options):
except ValueError as exc:
raise SystemExit(f"Config validation error: {exc}") from exc

# if EverestRunModel.create(options.config).check_if_runpath_exists():
# warn_user_that_runpath_is_nonempty()
if (
options.config.simulation_dir is not None
and os.path.exists(options.config.simulation_dir)
and any(os.listdir(options.config.simulation_dir))
):
warn_user_that_runpath_is_nonempty()

try:
output_dir = options.config.output_dir
Expand Down

0 comments on commit c3f02ba

Please sign in to comment.