mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Console to system tray - implemented Harmony
This commit is contained in:
parent
962d6e9079
commit
c664151ab2
2 changed files with 3 additions and 8 deletions
|
|
@ -14,8 +14,7 @@ class LaunchWithWindowsShell(PreLaunchHook):
|
|||
|
||||
# Should be as last hook because must change launch arguments to string
|
||||
order = 1000
|
||||
app_groups = ["nuke", "nukex", "hiero", "nukestudio",
|
||||
"harmony"]
|
||||
app_groups = ["nuke", "nukex", "hiero", "nukestudio"]
|
||||
platforms = ["windows"]
|
||||
|
||||
def execute(self):
|
||||
|
|
|
|||
|
|
@ -80,16 +80,12 @@ def main(argv):
|
|||
launch_args = sys_args[after_script_idx:]
|
||||
|
||||
host_name = os.environ["AVALON_APP"].lower()
|
||||
launch_method = None
|
||||
if host_name == "photoshop":
|
||||
from avalon.photoshop.lib import main
|
||||
launch_method = main
|
||||
elif host_name == "aftereffects":
|
||||
from avalon.aftereffects.lib import main
|
||||
launch_method = main
|
||||
elif host_name == "harmony":
|
||||
from avalon.harmony.lib import launch
|
||||
launch_method = launch
|
||||
from avalon.harmony.lib import main
|
||||
else:
|
||||
title = "Unknown host name"
|
||||
message = (
|
||||
|
|
@ -101,7 +97,7 @@ def main(argv):
|
|||
|
||||
if launch_args:
|
||||
# Launch host implementation
|
||||
launch_method(*launch_args)
|
||||
main(*launch_args)
|
||||
else:
|
||||
# Show message box
|
||||
on_invalid_args(after_script_idx is None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue