X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2F__init__.py;h=8a73b05ba4637b4c804b0f0ca876d3e38343a54a;hb=5154dc89c0a2a565e9e79024ba8910f405279dd2;hp=86929df888e9d0f09192a0b2e6a59556424bce8e;hpb=7b8dcad5fbb9b248952ad6819ef984e7880ef81e;p=gdcm.git diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index 86929df8..8a73b05b 100644 --- a/gdcmPython/__init__.py +++ b/gdcmPython/__init__.py @@ -53,6 +53,7 @@ except KeyError: print "Path to dictionaries is mandatory. Exiting" sys.exit(1) os.environ["GDCM_DICT_PATH"] = Path +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") @@ -70,12 +71,18 @@ except ImportError,e: raise ImportError, "gdcm extension not imported." ### Expose only the necessary stuff -gdcmGlobal = gdcm.gdcmGlobal -gdcmDictSet = gdcm.gdcmDictSet -gdcmDicomDir = gdcm.gdcmDicomDir -gdcmHeader = gdcm.gdcmHeader -gdcmHeaderHelper = gdcm.gdcmHeaderHelper -gdcmFile = gdcm.gdcmFile +gdcmGlobal = gdcm.gdcmGlobal +gdcmDictSet = gdcm.gdcmDictSet +gdcmDicomDir = gdcm.gdcmDicomDir +gdcmHeader = gdcm.gdcmHeader +gdcmHeaderHelper = gdcm.gdcmHeaderHelper +gdcmFile = gdcm.gdcmFile + +gdcmDicomDirMeta = gdcm.gdcmDicomDirMeta +gdcmDicomDirPatient = gdcm.gdcmDicomDirPatient +gdcmDicomDirStudy = gdcm.gdcmDicomDirStudy +gdcmDicomDirSerie = gdcm.gdcmDicomDirSerie +gdcmDicomDirImage = gdcm.gdcmDicomDirImage def GetPubDictEntryNames(): return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNames()