use correct path to bootstrap repos

This commit is contained in:
Milan Kolar 2021-04-20 16:45:29 +02:00
parent 29d582c47e
commit f8fdb97925

View file

@ -285,7 +285,7 @@ class BootstrapRepos:
"""Get version of local OpenPype."""
version = {}
path = Path(os.path.dirname(__file__)).parent / "openpype" / "version.py"
path = Path(os.environ["OPENPYPE_ROOT"]) / "openpype" / "version.py"
with open(path, "r") as fp:
exec(fp.read(), version)
return version["__version__"]