mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
simplified repository resolving using OpenPypeVersion.get_installed_version
This commit is contained in:
parent
a003bceb16
commit
9fd2a7b978
1 changed files with 3 additions and 7 deletions
|
|
@ -732,13 +732,9 @@ class BootstrapRepos:
|
||||||
if repo_dir:
|
if repo_dir:
|
||||||
version = self.get_version(repo_dir)
|
version = self.get_version(repo_dir)
|
||||||
else:
|
else:
|
||||||
version = OpenPypeVersion.get_installed_version_str()
|
installed_version = OpenPypeVersion.get_installed_version()
|
||||||
# QUESTION Can we use 'OPENPYPE_ROOT' env variable or it may
|
version = str(installed_version)
|
||||||
# not be defined yet?
|
repo_dir = installed_version.path
|
||||||
if getattr(sys, "frozen", False):
|
|
||||||
repo_dir = Path(sys.executable).parent
|
|
||||||
else:
|
|
||||||
repo_dir = Path(Path(__file__).parent / "..")
|
|
||||||
|
|
||||||
if not version:
|
if not version:
|
||||||
self._print("OpenPype not found.", LOG_ERROR)
|
self._print("OpenPype not found.", LOG_ERROR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue