示例#1
0
文件: util.py 项目: 151706061/Slicer
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
示例#2
0
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
示例#3
0
文件: util.py 项目: gregsharp/Slicer
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
示例#4
0
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
示例#5
0
文件: util.py 项目: gregsharp/Slicer
def moduleNames():
  from slicer import app
  return app.moduleManager().factoryManager().loadedModuleNames()
示例#6
0
def moduleNames():
    from slicer import app
    return app.moduleManager().factoryManager().loadedModuleNames()