]> Creatis software - gdcm.git/blobdiff - gdcmPython/__init__.py
* src/gdcmValEntry.h: member voidArea type changed from char* to void*.
[gdcm.git] / gdcmPython / __init__.py
index ced744ed51dfcb59d204311eaa3d96c4d6e92a9d..4b2b8cc6ee5383b997132f2303161bf3437c5188 100644 (file)
@@ -56,7 +56,11 @@ except KeyError:
 GDCM_DICT_PATH = os.environ["GDCM_DICT_PATH"]
 
 ### Set up the path to the data images for the demos.
-GDCM_DATA_PATH = BuildInstallOrPreinstallPath("Test", "test.acr")
+if os.environ["GDCM_DATA_PATH"]:
+   GDCM_DATA_PATH = BuildInstallOrPreinstallPath(os.environ["GDCM_DATA_PATH"],
+                                                 "test.acr")
+else:
+   GDCM_DATA_PATH = BuildInstallOrPreinstallPath("Test", "test.acr")
 if not GDCM_DATA_PATH:
    print "GDCM_DATA_PATH is not setup properly: unfound Test directory"