Merge pull request #5843 from BigRoy/bugfix/register_launcher_action_from_addon

Fix registering launcher actions from OpenPypeModules
This commit is contained in:
Jakub Trllo 2023-10-31 15:46:41 +01:00 committed by GitHub
commit f8ae5a0c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ class LauncherAction(OpenPypeModule, ITrayAction):
actions_paths = self.manager.collect_plugin_paths()["actions"] actions_paths = self.manager.collect_plugin_paths()["actions"]
for path in actions_paths: for path in actions_paths:
if path and os.path.exists(path): if path and os.path.exists(path):
register_launcher_action_path(actions_dir) register_launcher_action_path(path)
paths_str = os.environ.get("AVALON_ACTIONS") or "" paths_str = os.environ.get("AVALON_ACTIONS") or ""
if paths_str: if paths_str: