Import 2017-06-07 23:51:09: master 7259b58a

Author Committer Branch Timestamp Parent
msmolens msmolens master 2015-08-18 10:32:27 master 14bc3745
Changeset

BUG: Fix running DataProbe self test

This commit fixes the following error when running the DataProbe self
test from the SelfTests module:

Starting the test
Traceback (most recent call last):
  File "C:/dev/SN/Slicer-build/lib/Slicer-4.4/qt-scripted-modules/SelfTests.py", line 168, in run
result = self.selfTests[test]()
  File "C:/dev/SN/Slicer-build/lib/Slicer-4.4/qt-scripted-modules/DataProbe.py", line 46, in runTest
tester.runTest()
  File "C:/dev/SN/Slicer-build/lib/Slicer-4.4/qt-scripted-modules/DataProbe.py", line 611, in runTest
self.test_DataProbe1()
  File "C:/dev/SN/Slicer-build/lib/Slicer-4.4/qt-scripted-modules/DataProbe.py", line 637, in test_DataProbe1
if not os.path.exists(filePath) or os.stat(filePath).st_size == 0:
NameError: global name 'os' is not defined

From: Max Smolens <max.smolens@kitware.com>

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

mod - Modules/Scripted/DataProbe/DataProbe.py Diff File