mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
add acre to sys path in igniter as pype.py has invalid relative path to repos
This commit is contained in:
parent
8e39835e4a
commit
8b7b62c044
2 changed files with 27 additions and 21 deletions
15
pype.py
15
pype.py
|
|
@ -44,20 +44,13 @@ import re
|
|||
import sys
|
||||
import traceback
|
||||
|
||||
from igniter.tools import load_environments
|
||||
from igniter.tools import load_environments, add_acre_to_sys_path
|
||||
|
||||
try:
|
||||
import acre
|
||||
except ImportError:
|
||||
acre_dir = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
"repos",
|
||||
"acre"
|
||||
)
|
||||
sys.path.append(acre_dir)
|
||||
import acre
|
||||
from igniter import BootstrapRepos
|
||||
|
||||
add_acre_to_sys_path()
|
||||
import acre
|
||||
|
||||
|
||||
def set_environments() -> None:
|
||||
"""Set loaded environments.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue