mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #2522 from pypeclub/bugfix/OP-2255_fix-create-zip-path
Fix create zip tool - path argument
This commit is contained in:
commit
f511538b49
2 changed files with 4 additions and 2 deletions
|
|
@ -762,7 +762,7 @@ class BootstrapRepos:
|
|||
|
||||
destination = self._move_zip_to_data_dir(temp_zip)
|
||||
|
||||
return OpenPypeVersion(version=version, path=destination)
|
||||
return OpenPypeVersion(version=version, path=Path(destination))
|
||||
|
||||
def _move_zip_to_data_dir(self, zip_file) -> Union[None, Path]:
|
||||
"""Move zip with OpenPype version to user data directory.
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue