mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
reversed condition logic
This commit is contained in:
parent
b8ef1abca0
commit
d571487fcd
1 changed files with 6 additions and 3 deletions
|
|
@ -23,6 +23,9 @@ class LaunchWithTerminal(PreLaunchHook):
|
|||
# Check if first argument match executable path
|
||||
# - Few applications are not executed directly but through OpenPype
|
||||
# process (Photoshop, AfterEffects, Harmony, ...). These should not
|
||||
# use `open -an`.
|
||||
if self.launch_context.launch_args[0] == executable:
|
||||
self.launch_context.launch_args.insert(0, ["open", "-an"])
|
||||
# use `open`.
|
||||
if self.launch_context.launch_args[0] != executable:
|
||||
return
|
||||
|
||||
# Prepend open arguments
|
||||
self.launch_context.launch_args.insert(0, ["open", "-a"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue