In a config, I’d like to launch a simple app popup window from inside the execute method of the before_app_launch hook.
Here’s the scenario:
When the BeforeAppLaunch execute function is running, I am checking to see if the DCC app that is being launched is already running. If it is, I want to launch my custom app that displays a dialog window. (I used the tk-multi-starterapp to build my dialog panel.)
In testing my app dialog panel, it runs via a Shotgun toolkit menu command and also via a tk-shell command. However, I can’t quite figure out how to access and run it from within the before_app_launch execute function.
Is this possible - can I somehow import my app and run it from before_app_launch? If not, what would I need to change to use it there?
Thanks for any help,