def getModule(moduleName): from slicer import app module = app.moduleManager().module(moduleName); if not module: print "Could not find module with name '%s" % moduleName return None return module
def getModule(moduleName): from slicer import app module = app.moduleManager().module(moduleName); if not module: import sys print("Could not find module with name '%s" % moduleName, file=sys.stderr) return None return module
def moduleNames(): from slicer import app return app.moduleManager().factoryManager().loadedModuleNames()