From a1621592e285bfcbb0dabff6814bdba50981cebd Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 5 Jan 2021 12:52:57 +0100 Subject: [PATCH] builtins added to subfolder --- .../ftrack/launch_hooks/pre_python2_vendor.py | 12 +++++++----- .../builtins/{ => builtins}/__init__.py | 0 2 files changed, 7 insertions(+), 5 deletions(-) rename pype/modules/ftrack/python2_vendor/builtins/{ => builtins}/__init__.py (100%) diff --git a/pype/modules/ftrack/launch_hooks/pre_python2_vendor.py b/pype/modules/ftrack/launch_hooks/pre_python2_vendor.py index 78c19e971c..a52caf9f00 100644 --- a/pype/modules/ftrack/launch_hooks/pre_python2_vendor.py +++ b/pype/modules/ftrack/launch_hooks/pre_python2_vendor.py @@ -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" ) diff --git a/pype/modules/ftrack/python2_vendor/builtins/__init__.py b/pype/modules/ftrack/python2_vendor/builtins/builtins/__init__.py similarity index 100% rename from pype/modules/ftrack/python2_vendor/builtins/__init__.py rename to pype/modules/ftrack/python2_vendor/builtins/builtins/__init__.py