fixed python launch

This commit is contained in:
iLLiCiTiT 2020-11-25 17:04:07 +01:00
parent 576c359b4f
commit 8f08412ec7
3 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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)
]