Add config files for spec+spec_nb, make output directory parent
This commit is contained in:
parent
fe17378bb0
commit
392e29e20d
3 changed files with 24 additions and 8 deletions
|
@ -25,6 +25,7 @@ out = pathlib.Path(config.get("swash", "out"))
|
|||
if out.exists():
|
||||
log.error(f"Swash output '{out}' already exists")
|
||||
sys.exit(1)
|
||||
out.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
||||
tmpdir = pathlib.Path(tmp_raw)
|
||||
|
|
Reference in a new issue