I have an Event script and I want to call another .py file that is in the same location as the event file being executed.
Normally I would do something like this:
from inspect import getsourcefile
dir_path = (os.path.dirname(os.path.abspath(getsourcefile(lambda:0))))
or
dir_path = (os.path.dirname(os.path.abspath(__file__)))
However neither of these work. They all appear to return the Bin folder for Deadline instead of what should be returned
C:\DeadlineRepository8\custom\events\JohnsEvent
I was curious to know if there were any work around for this?