Re: __sipath__, why are you so useless :/

2012-05-22 Thread Alan Fregtman
Saw here: http://xsisupport.wordpress.com/2010/10/24/python-importing-modules-into-plugins/ ...that I'm supposed to import from within my custom command? Not in the beginning of my file like I was doing. Are we really supposed to import (our module freshly added to the PATH) on every command we

__sipath__, why are you so useless :/

2012-05-18 Thread Alan Fregtman
Why is it that __sipath__ isn't set most of the time? Docs say: import siutils # Add this plug-in path to python path siutils.add_to_syspath(__sipath__) but it errors! :( # File Script Block , line 29, in module # siutils.add_to_syspath(__sipath__) # NameError: name '__sipath__' is not