In my plugin I use:
- Code: Select all
from os.path import dirname
to set the Python path for resolving. Is this the way to go about it in Sublime?
Edit: this trick seemed to work when I put my stuff in %APPDATA%\Sublime Text\Packages\User\, but now that I moved to making my plugin a real package and placed it all in %APPDATA%\Sublime Text\Packages\<NAME> I get an ImportError when the module tried to load one of its own files. Any hints/tips?