PreInstallModePath = os.path.join(__path__[0], "..", DirName + "/")
if os.path.isfile(os.path.join(PreInstallModePath, FileName)):
return PreInstallModePath
- print "Unfound directory ", DirName
return None
### Setup the path to the dictionaries. WARNING: this needs to be done
-# BEFORE importation of the shadow classse generated by swig as found
+# BEFORE importation of the shadow classes generated by swig as found
# in gdcm, since the dynamic library loads the standard dictionary
# when dynamically loaded.
# We consider we succefully found the dictionaries path when we encounter
### Set up the path to the data images for the demos.
GDCM_DATA_PATH = BuildInstallOrPreinstallPath("Test", "test.acr")
+if not GDCM_DATA_PATH:
+ print "GDCM_DATA_PATH is not setup properly: unfound Test directory"
### Set up the path to the data images of the test suite.
GDCM_TEST_DATA_PATH = BuildInstallOrPreinstallPath("gdcmData", "test.acr")