Import 2017-06-07 23:51:09: master e5cf5fec
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
jcfr | jcfr | master | 2015-04-03 20:42:28 | master 941fad8e |
Affected Issues | 0003549: Import scripted module as python module | |||
Changeset | ENH: Fixes 0003549. Import scripted module as python module This will allow each scripted module to defined top-level variables that For example, if we consider these two modules: 8<----8<----8<----8<----8<----8<----8<----8<---- FOO = 1 class ModuleA(ScriptedLoadableModule): 8<----8<----8<----8<----8<----8<----8<----8<---- FOO = 2 class ModuleB(ScriptedLoadableModule): Assuming ModuleA, and then ModuleB are imported. Before this commit, After this commit, both module will see their own copy of the FOO It also avoid the hack when we explicitly save/set/restore Changes to "DICOMScalarVolumePlugin" fixes the test failing test //-------------- git-svn-id: http://svn.slicer.org/Slicer4/trunk@24155 3bd1e089-480b-0410-8dfb-8563597acbee |
|||
mod - Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest.py | Diff File | |||
add - Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleC_WithoutWidget.py | Diff File | |||
add - Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleD_WithFileDialog_WithoutWidget.py | Diff File | |||
add - Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleE_WithFileWriter_WithoutWidget.py | Diff File | |||
mod - Base/QTCore/qSlicerScriptedFileWriter.cxx | Diff File | |||
mod - Base/QTCore/qSlicerScriptedUtils.cxx | Diff File | |||
mod - Base/QTCore/qSlicerScriptedUtils_p.h | Diff File | |||
mod - Base/QTGUI/qSlicerScriptedFileDialog.cxx | Diff File | |||
mod - Base/QTGUI/qSlicerScriptedLoadableModule.cxx | Diff File | |||
mod - Base/QTGUI/qSlicerScriptedLoadableModuleWidget.cxx | Diff File | |||
mod - Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py | Diff File |