mirror of
https://github.com/openzim/zimit.git
synced 2025-12-31 04:23:15 +00:00
Issue #499 - Ensure build directory exists when passed.
This commit is contained in:
parent
57a88434e2
commit
6db73a0a83
1 changed files with 1 additions and 0 deletions
|
|
@ -801,6 +801,7 @@ def run(raw_args):
|
|||
if known_args.build:
|
||||
# use build dir argument if passed
|
||||
temp_root_dir = Path(known_args.build)
|
||||
temp_root_dir.mkdir(parents=True, exist_ok=True)
|
||||
else:
|
||||
# make new randomized temp dir
|
||||
temp_root_dir = Path(tempfile.mkdtemp(dir=known_args.output, prefix=".tmp"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue