mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
solve python 2 vendors in pype.lib
This commit is contained in:
parent
ec85b9dbe4
commit
04d1dcd4cb
1 changed files with 9 additions and 5 deletions
|
|
@ -6,11 +6,15 @@ import sys
|
|||
import os
|
||||
import site
|
||||
|
||||
# add Python version specific vendor folder
|
||||
site.addsitedir(
|
||||
os.path.join(
|
||||
os.getenv("OPENPYPE_REPOS_ROOT", ""),
|
||||
"vendor", "python", "python_{}".format(sys.version[0])))
|
||||
# Add Python version specific vendor folder
|
||||
python_version_dir = os.path.join(
|
||||
os.getenv("OPENPYPE_REPOS_ROOT", ""),
|
||||
"openpype", "vendor", "python", "python_{}".format(sys.version[0])
|
||||
)
|
||||
# Prepend path in sys paths
|
||||
sys.path.insert(0, python_version_dir)
|
||||
site.addsitedir(python_version_dir)
|
||||
|
||||
|
||||
from .env_tools import (
|
||||
env_value_to_bool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue