X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2F__init__.py;h=cb32100c5d098b1133ff5ea284458bf682222572;hb=d7a4d5d474ae599b723e52ebda8bd3fc6cee752a;hp=dcad484cb23efa8365c080bd12deb841451ba881;hpb=ebee24c21fea75fcb7d0e4479cf72072fe6775f1;p=gdcm.git diff --git a/gdcmPython/__init__.py b/gdcmPython/__init__.py index dcad484c..cb32100c 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,9 +70,11 @@ 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()