Console to system tray - implemented Harmony

This commit is contained in:
Petr Kalis 2021-06-01 13:39:40 +02:00
parent 962d6e9079
commit c664151ab2
2 changed files with 3 additions and 8 deletions

View file

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

View file

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