mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
change harmony and photoshop args
This commit is contained in:
parent
92d34a0a66
commit
674f287fe1
2 changed files with 15 additions and 18 deletions
|
|
@ -21,7 +21,7 @@ class HarmonyPrelaunchHook(PreLaunchHook):
|
|||
while self.launch_context.launch_args:
|
||||
remainders.append(self.launch_context.launch_args.pop(0))
|
||||
|
||||
python_launch_args = [
|
||||
new_launch_args = [
|
||||
self.python_executable(),
|
||||
"-c",
|
||||
(
|
||||
|
|
@ -29,14 +29,12 @@ class HarmonyPrelaunchHook(PreLaunchHook):
|
|||
"avalon.harmony.launch(\"{}\")^\"\""
|
||||
).format(photoshop_executable)
|
||||
]
|
||||
if platform.system().lower() != "windows":
|
||||
new_launch_args = python_launch_args
|
||||
else:
|
||||
new_launch_args = [
|
||||
"cmd.exe",
|
||||
"/k",
|
||||
"\"{}\"".format(" ".join(python_launch_args))
|
||||
]
|
||||
# if platform.system().lower() == "windows":
|
||||
# new_launch_args = [
|
||||
# "cmd.exe",
|
||||
# "/k",
|
||||
# "\"{}\"".format(" ".join(new_launch_args))
|
||||
# ]
|
||||
|
||||
# Append as whole list as these areguments should not be separated
|
||||
self.launch_context.launch_args.append(new_launch_args)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class PhotoshopPrelaunchHook(PreLaunchHook):
|
|||
while self.launch_context.launch_args:
|
||||
remainders.append(self.launch_context.launch_args.pop(0))
|
||||
|
||||
python_launch_args = [
|
||||
new_launch_args = [
|
||||
self.python_executable(),
|
||||
"-c",
|
||||
(
|
||||
|
|
@ -29,14 +29,13 @@ class PhotoshopPrelaunchHook(PreLaunchHook):
|
|||
"avalon.photoshop.launch(\"{}\")^\"\""
|
||||
).format(photoshop_executable)
|
||||
]
|
||||
if platform.system().lower() != "windows":
|
||||
new_launch_args = python_launch_args
|
||||
else:
|
||||
new_launch_args = [
|
||||
"cmd.exe",
|
||||
"/k",
|
||||
"\"{}\"".format(" ".join(python_launch_args))
|
||||
]
|
||||
|
||||
# if platform.system().lower() == "windows":
|
||||
# new_launch_args = [
|
||||
# "cmd.exe",
|
||||
# "/k",
|
||||
# "\"{}\"".format(" ".join(new_launch_args))
|
||||
# ]
|
||||
|
||||
# Append as whole list as these areguments should not be separated
|
||||
self.launch_context.launch_args.append(new_launch_args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue