mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
pref dir over zip
This commit is contained in:
parent
556975854b
commit
955a07db46
1 changed files with 7 additions and 7 deletions
14
start.py
14
start.py
|
|
@ -487,10 +487,9 @@ def _find_frozen_openpype(use_version: str = None,
|
||||||
if use_version and use_version != local_version:
|
if use_version and use_version != local_version:
|
||||||
openpype_versions = bootstrap.find_openpype(include_zips=True)
|
openpype_versions = bootstrap.find_openpype(include_zips=True)
|
||||||
v: OpenPypeVersion
|
v: OpenPypeVersion
|
||||||
for v in openpype_versions:
|
found = [v for v in openpype_versions if str(v) == use_version]
|
||||||
if str(v) == use_version:
|
if found:
|
||||||
openpype_version = v
|
openpype_version = sorted(found)[-1]
|
||||||
version_path = openpype_version.path
|
|
||||||
if not openpype_version:
|
if not openpype_version:
|
||||||
print(f"!!! requested version {use_version} was not found.")
|
print(f"!!! requested version {use_version} was not found.")
|
||||||
if openpype_versions:
|
if openpype_versions:
|
||||||
|
|
@ -558,9 +557,10 @@ def _bootstrap_from_code(use_version):
|
||||||
version_to_use = None
|
version_to_use = None
|
||||||
openpype_versions = bootstrap.find_openpype(include_zips=True)
|
openpype_versions = bootstrap.find_openpype(include_zips=True)
|
||||||
v: OpenPypeVersion
|
v: OpenPypeVersion
|
||||||
for v in openpype_versions:
|
found = [v for v in openpype_versions if str(v) == use_version]
|
||||||
if str(v) == use_version:
|
if found:
|
||||||
version_to_use = v
|
version_to_use = sorted(found)[-1]
|
||||||
|
|
||||||
if version_to_use:
|
if version_to_use:
|
||||||
# use specified
|
# use specified
|
||||||
if version_to_use.path.is_file():
|
if version_to_use.path.is_file():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue