fix dir/file resolution

This commit is contained in:
Ondrej Samohel 2022-01-12 18:46:44 +01:00
parent 6df5488cce
commit 9193003888
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -31,7 +31,9 @@ def main(path):
bs = bootstrap_repos.BootstrapRepos(progress_callback=progress)
if path:
out_path = Path(path)
bs.data_dir = out_path.parent
bs.data_dir = out_path
if out_path.is_file():
bs.data_dir = out_path.parent
_print(f"Creating zip in {bs.data_dir} ...")
repo_file = bs.create_version_from_live_code()