mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
fixed python launch
This commit is contained in:
parent
576c359b4f
commit
8f08412ec7
3 changed files with 10 additions and 10 deletions
|
|
@ -13,7 +13,7 @@ class AfterEffectsPrelaunchHook(PreLaunchHook):
|
|||
|
||||
def execute(self):
|
||||
# Pop tvpaint executable
|
||||
photoshop_executable = self.launch_context.launch_args.pop(0)
|
||||
aftereffects_executable = self.launch_context.launch_args.pop(0)
|
||||
|
||||
# Pop rest of launch arguments - There should not be other arguments!
|
||||
remainders = []
|
||||
|
|
@ -24,9 +24,9 @@ class AfterEffectsPrelaunchHook(PreLaunchHook):
|
|||
self.python_executable(),
|
||||
"-c",
|
||||
(
|
||||
"^\"import avalon.aftereffects;"
|
||||
"avalon.aftereffects.launch(\"{}\")^\"\""
|
||||
).format(photoshop_executable)
|
||||
"import avalon.aftereffects;"
|
||||
"avalon.aftereffects.launch(\"{}\")"
|
||||
).format(aftereffects_executable)
|
||||
]
|
||||
|
||||
# Append as whole list as these areguments should not be separated
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class HarmonyPrelaunchHook(PreLaunchHook):
|
|||
|
||||
def execute(self):
|
||||
# Pop tvpaint executable
|
||||
photoshop_executable = self.launch_context.launch_args.pop(0)
|
||||
harmony_executable = self.launch_context.launch_args.pop(0)
|
||||
|
||||
# Pop rest of launch arguments - There should not be other arguments!
|
||||
remainders = []
|
||||
|
|
@ -24,9 +24,9 @@ class HarmonyPrelaunchHook(PreLaunchHook):
|
|||
self.python_executable(),
|
||||
"-c",
|
||||
(
|
||||
"^\"import avalon.harmony;"
|
||||
"avalon.harmony.launch(\"{}\")^\"\""
|
||||
).format(photoshop_executable)
|
||||
"import avalon.harmony;"
|
||||
"avalon.harmony.launch(\"{}\")"
|
||||
).format(harmony_executable)
|
||||
]
|
||||
|
||||
# Append as whole list as these areguments should not be separated
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ class PhotoshopPrelaunchHook(PreLaunchHook):
|
|||
self.python_executable(),
|
||||
"-c",
|
||||
(
|
||||
"^\"import avalon.photoshop;"
|
||||
"avalon.photoshop.launch(\"{}\")^\"\""
|
||||
"import avalon.photoshop;"
|
||||
"avalon.photoshop.launch(\"{}\")"
|
||||
).format(photoshop_executable)
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue