User:Inorton/Slicer4:Misc

From NAMIC Wiki
< User:Inorton
Revision as of 04:21, 23 October 2010 by Inorton (talk | contribs)
Jump to: navigation, search
  • Does the signal/slot macro method allow for global tracking of active s&s?

Paths

In Slicer3 the very useful "Slicer3SetupPaths" scripts are generated by a KWWidgets CMake macro script located here:

%/Slicer3-SuperBuild/KWWidgets/CMake/KWWidgetsPathsMacros.cmake

This is not available yet. Easy workaround script:

import os

outfn='SetupSlicerPaths.sh'
outfile = file(outfn,'w')
for item in os.environ.keys():
        outfile.write(item + '=' + os.environ[item] + '\n')
outfile.close()

Then just execfile this script from the Slicer python shell and then source SetupSlicerPaths.sh.

Module/Plugin Notes