Hi @philip.scadding , sorry for the confusion.
Is this a hook in the “Toolkit” sense on an app or engine?
Yes, in the toolkit sense. It’s basically the “publish_file” hook that I’ve copied from tk-multi-publish2, changed some functionality and overwritten the original hook in the settings configuration.
My changes to the “publish_file” hook are DCC agnostic. As part of those changes, I need to know the current session file and the way I’m getting it at the moment is doing a whole bunch of try/excepts to attempt to import different DCC API modules (e.g. maya.cmds, hou, etc.) until I have the one I need to get the current scene path with. My question is basically if there is any way to get the current session path through the engine or through another hook that I could manually call?
If there’s another way to approach this problem that you can think of - I’d appreciate any suggestions, thanks!