Import 2017-06-07 23:51:09: master 94be8ae4

Author Committer Branch Timestamp Parent
pieper pieper master 2014-03-11 10:33:46 master abb090d1
Changeset

BUG: helper method does not have access to slicer module

Before this change, calling the method from a module gave this error:

"/Applications/Slicer-2014-02-07.app/Contents/bin/Python/slicer/util.py",
line 383, in resetSliceViews
manager = slicer.app.layoutManager().resetSliceViews()
NameError: global name 'slicer' is not defined

Importing slicer in each method seems wrong so,
TODO: explore importing at the top of util.py

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22941 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/Python/slicer/util.py Diff File