Skip to content

Commit

Permalink
fix: make outdir if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Mar 29, 2024
1 parent 6980381 commit 39f6d42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hera_opm/mf_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,9 @@ def build_lstbin_notebook_makeflow_from_config(
outdir = Path(get_config_entry(config, "LSTBIN_OPTS", "outdir"))

# Write the toml config to the output directory.
if not outdir.exists():
outdir.mkdir()

shutil.copy2(config_file, outdir / "lstbin-config.toml")

# Also write a YAML version of just the parameters, to be used to run
Expand Down

0 comments on commit 39f6d42

Please sign in to comment.