Get project during engine startup

For our internal tools we are branching them per project.
Is there an easy way to get what project is active in my custom engine’s startup.py?
I need to modify where I look for executables depending on the project.

1 Like

Hey Joe – I’m not exactly sure where in the process you’re wanting to get to the project, but the engine does store context in self.context in startup.py (as seen here in the Nuke engine), which you can get the project from. Would that work for you?

3 Likes

Maybe, currently I’m building the paths before the class definition since I need to ask perforce to resolve depot paths to local paths for where the executables live. I probably need to rewrite it so all my logic happens in the _find_software method.

2 Likes