]> Creatis software - gdcm.git/blobdiff - gdcmPython/__init__.py
* add shadow dictionary
[gdcm.git] / gdcmPython / __init__.py
index dcad484cb23efa8365c080bd12deb841451ba881..cb32100c5d098b1133ff5ea284458bf682222572 100644 (file)
@@ -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()