X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2F__init__.py;h=fcfd024ebb1ab4d60ffcd38b4989ed42cedf12a1;hb=adbbd930989c6e6fc8e1b76bfd7bdfe5cbcb430e;hp=7d6390e70f892dcbc3bb862a1355b81caa2f21d9;hpb=bafdfafe6c1b30607035fc4018c0405169b348e8;p=gdcm.git diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index 7d6390e7..fcfd024e 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,13 +71,15 @@ 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 -def GetPubDictTagNames(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictTagNames() +def GetPubDictEntryNames(): + return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNames() -def GetPubDictTagNamesByCategory(): - return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictTagNamesByCategory() +def GetPubDictEntryNamesByCategory(): + return gdcm.cvar.gdcmGlob.GetDicts().GetPubDictEntryNamesByCategory()