indulges in further thread necro
Thanks csa3d, i just ran across the same issues.
I recently changed studio and have been reviewing a lot of my old tools, including changing back to using init’s for subdirectories in a module ( rather than just adding all subdir’s to sys.path - wasteful timewise ) and encountered this issue as a result.
The only difference i’ve made to the solution is using
import os
import sys
import inspect
sys.path.append(os.path.dirname(os.path.abspath(inspect.getfile( inspect.currentframe() ))))
instead as file wasn’t working ( i have some callbacks in my start up sequence that run code before Maya’s loaded its scripting environment so the file method fails as a result )
… so yeah - signed in for the first time in a year to say thanks
~ PJ