mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
move environment set before pype imports
This commit is contained in:
parent
849c4cb682
commit
3cde2dff39
1 changed files with 4 additions and 3 deletions
7
start.py
7
start.py
|
|
@ -611,9 +611,6 @@ def boot():
|
|||
except KeyError:
|
||||
pass
|
||||
|
||||
from pype import cli
|
||||
from pype.lib import terminal as t
|
||||
from pype.version import __version__
|
||||
print(">>> loading environments ...")
|
||||
# Avalon environments must be set before avalon module is imported
|
||||
print(" - for Avalon ...")
|
||||
|
|
@ -623,6 +620,10 @@ def boot():
|
|||
print(" - for modules ...")
|
||||
set_modules_environments()
|
||||
|
||||
from pype import cli
|
||||
from pype.lib import terminal as t
|
||||
from pype.version import __version__
|
||||
|
||||
assert version_path, "Version path not defined."
|
||||
info = get_info()
|
||||
info.insert(0, f">>> Using Pype from [ {version_path} ]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue