]> Creatis software - gdcm.git/blobdiff - gdcmPython/__init__.py
2003-03-17 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
[gdcm.git] / gdcmPython / __init__.py
index 34ce06f7522ea717c194369e76944213e7dc525a..d15ab74da3930478c057586a2848131171b6798d 100644 (file)
@@ -43,11 +43,11 @@ except KeyError:
 #   installation scheme and the pre-install mode (see above).
 InstallModePath = os.path.join(__path__[0], "Data")
 if os.path.isfile(os.path.join(InstallModePath, "test.acr")):
-   os.environ["GDCM_DATA_PATH"] = InstallModePath
+   GDCM_DATA_PATH = InstallModePath
 else:
    PreInstallModePath = os.path.join(__path__[0], "..", "Data")
    if os.path.isfile(os.path.join(PreInstallModePath, "test.acr")):
-      os.environ["GDCM_DATA_PATH"] = PreInstallModePath
+      GDCM_DATA_PATH = PreInstallModePath
    else:
       print "Unfound data path"
       sys.exit(1)