For example the reconstruction workbench .../Mod/reconstruction has some subdirs
This is the way to load the icons and the scripts
Code: Select all
__dir__ = os.path.dirname(os.path.dirname(__file__))
def getIcon(self):
return __dir__+ '/icons/'+self.Object.mode+'.svg'
Code: Select all
import reconstruction
import reconstruction.miki as miki
import reconstruction.tools as tools
import reconstruction.configuration as config