For the AYON Harmony plugin, we created a custom launcher action to remove the old extracted Harmony ZIP file from the local cache.
We got this custom launcher action to appear by adding IPluginPaths to the HarmonyAddon class definition here: ayon-harmony/client/ayon_harmony/addon.py
However, we’ve just discovered that this interferes with the core’s extract_review.py functionality. Specifically, in the core’s extract_review, self.profile always returns None, even when the context is not in the Harmony host.
We suspect this happens because there’s also an extract_review.py inside the Harmony plugin’s publish folder. Renaming Harmony’s extract_review.py makes the core’s version work again.
What’s the best (and least disruptive) way to create a custom launcher action for a specific addon in AYON without causing this kind of conflict?
We’ve just realized that the extract_review .py in harmony was created as a custom plugin that we made.
We have changed both the filename and the class name to avoid conflict, and it worked as expected now.
@mustafa_jafar about your note with regards to file names and class name, we did noticed with our earlier tests that changing the class name without changing the file name will still produces the bug/issue with extract_review.