]> Creatis software - gdcm.git/commitdiff
* gdcmPython/ : amelioration to load Version with the library
authorregrain <regrain>
Thu, 14 Apr 2005 13:44:04 +0000 (13:44 +0000)
committerregrain <regrain>
Thu, 14 Apr 2005 13:44:04 +0000 (13:44 +0000)
   -- BeNours

gdcmPython/CMakeLists.txt

index c5488ece24e5a5e9eaa2aea9c49582b1c3766238..b48dc60b235155921aa6a3ba3c563f5c73132220 100644 (file)
@@ -207,6 +207,7 @@ FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/__init__.py
     )
 
 FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/core.py
+    "from gdcmVersion import *\n"
     "import gdcm\n"
     "GDCM_DATA_ROOT = \"${GDCM_DATA_ROOT}\"\n"
     )
@@ -214,6 +215,7 @@ FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/core.py
 IF(GDCM_VTK)
   FILE(WRITE ${GDCM_BINARY_DIR}/gdcmPython/vtk.py
     "import os\n"
+    "from gdcmVersion import *\n"
     "if os.name == 'posix':\n"
     "  from libvtkgdcmPython import *\n"
     "else:\n"