def _loadInstrumentPlugins(self): from InstrumentLoader import InstrumentLoader searchDirs = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask|NSLocalDomainMask|NSNetworkDomainMask, True) appName = u"Scotty" searchDirs = [ os.path.join(baseDir, appName, u"Instruments") for baseDir in searchDirs ] searchDirs.append(os.path.join(ModuleBundle.builtInPlugInsPath(), u"Instruments")) InstrumentLoader.loadInstrumentsInSearchPaths(searchDirs)
def _loadInstrumentPlugins(self): from InstrumentLoader import InstrumentLoader searchDirs = [ u'~/Library/Application Support/Substance Instruments', u'~/.substance/instruments', u'/Library/Application Support/Substance Instruments', u'/usr/local/share/substance/instruments', u'/usr/share/substance/instruments', u'/Network/Library/Application Support/Substance Instruments', ] searchDirs = [ os.path.expanduser(searchDir) for searchDir in searchDirs ] InstrumentLoader.loadInstrumentsInSearchPaths(searchDirs)