コード例 #1
0
def installPlugin():
  # Make sure OsiriX is running beforehand. Due to the modified environment of
  # MeVisLab OsiriX may behave differently than usual when started from this
  # environment...
  if MLAB.macIsApplicationRunning('com.rossetantoine.osirix'):
    MLAB.openFile(os.path.join(ctx.package().binPath(),'PlugIns','OsiriXMeVisLabBridge.osirixplugin'))
  else:
    MLAB.showInformation('OsiriX must be running to install the plugin. Please start OsiriX.', 'The plugin will be handed to OsiriX for installation. Click on the Install button again after launching OsiriX.', 'OsiriXBridge', ctx.window())
コード例 #2
0
def installPlugin():
    # Make sure OsiriX is running beforehand. Due to the modified environment of
    # MeVisLab OsiriX may behave differently than usual when started from this
    # environment...
    if MLAB.macIsApplicationRunning('com.rossetantoine.osirix'):
        MLAB.openFile(
            os.path.join(ctx.package().binPath(), 'PlugIns',
                         'OsiriXMeVisLabBridge.osirixplugin'))
    else:
        MLAB.showInformation(
            'OsiriX must be running to install the plugin. Please start OsiriX.',
            'The plugin will be handed to OsiriX for installation. Click on the Install button again after launching OsiriX.',
            'OsiriXBridge', ctx.window())
コード例 #3
0
def showGuide():
    MLAB.openFile(
        os.path.join(ctx.package().documentationPath(), 'Publish',
                     'OsiriXMeVisLabBridge.pdf'))
コード例 #4
0
def showPlugin():
  MLAB.openFile(os.path.join(ctx.package().binPath(),'PlugIns'))
コード例 #5
0
def showPlugin():
  MLAB.openFile(os.path.join(ctx.package().binPath(),'PlugIns'))