X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2F__init__.py;h=3cbeb9cf18b236957a6c9245fc11e37b287fa503;hb=8845fe9fca6c1ed22eaaae4dd4561c0ba2f31a6b;hp=dcad484cb23efa8365c080bd12deb841451ba881;hpb=ebee24c21fea75fcb7d0e4479cf72072fe6775f1;p=gdcm.git diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index dcad484c..3cbeb9cf 100644 --- a/gdcmPython/__init__.py +++ b/gdcmPython/__init__.py @@ -1,5 +1,10 @@ import os, sys +try: + from gdcmVersion import * +except: + print "gdcmVersion not imported" + def BuildInstallOrPreinstallPath(DirName, FileName = None): # Builds a path to the DirName directory. This should work both when: # - the package is properly installed in which case DirName is a subdir @@ -65,12 +70,14 @@ except ImportError,e: raise ImportError, "gdcm extension not imported." ### Expose only the necessary stuff -gdcmHeader = gdcm.gdcmHeader -gdcmDictSet = gdcm.gdcmDictSet -gdcmFile = gdcm.gdcmFile +gdcmGlobal = gdcm.gdcmGlobal +gdcmDictSet = gdcm.gdcmDictSet +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()