mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
python 2 prelaunch hooks are used when use_python_2 is True
This commit is contained in:
parent
0a709d704e
commit
5d584adb8e
2 changed files with 8 additions and 5 deletions
|
|
@ -8,10 +8,13 @@ class PrePython2Support(PreLaunchHook):
|
|||
|
||||
Path to vendor modules is added to the beggining of PYTHONPATH.
|
||||
"""
|
||||
# There will be needed more granular filtering in future
|
||||
app_groups = ["maya", "nuke", "nukex", "hiero", "nukestudio", "unreal"]
|
||||
|
||||
def execute(self):
|
||||
if not self.application.use_python_2:
|
||||
return
|
||||
|
||||
self.log.info("Adding Ftrack Python 2 packages to PYTHONPATH.")
|
||||
|
||||
# Prepare vendor dir path
|
||||
python_2_vendor = os.path.join(FTRACK_MODULE_DIR, "python2_vendor")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue