builtins added to subfolder

This commit is contained in:
iLLiCiTiT 2021-01-05 12:52:57 +01:00
parent 4733ef33a8
commit a1621592e2
2 changed files with 7 additions and 5 deletions

View file

@ -17,13 +17,15 @@ class PrePyhton2Support(PreLaunchHook):
# Add Python 2 modules
python_paths = [
# python-ftrack-api
# `python-ftrack-api`
os.path.join(python_2_vendor, "ftrack-python-api", "source"),
# arrow
# `arrow`
os.path.join(python_2_vendor, "arrow"),
# python-future
os.path.join(python_2_vendor, "python-future", "src"),
# backports.functools_lru_cache
# `builtins` from `python-future`
# - `python-future` is strict Python 2 module that cause crashes
# of Python 3 scripts executed through pype (burnin script etc.)
os.path.join(python_2_vendor, "builtins"),
# `backports.functools_lru_cache`
os.path.join(
python_2_vendor, "backports.functools_lru_cache", "backports"
)