From: regrain Date: Thu, 14 Apr 2005 13:44:04 +0000 (+0000) Subject: * gdcmPython/ : amelioration to load Version with the library X-Git-Tag: Version1.2.bp~790 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a7db02bef6a7ac565b50cab8fbda9f04f3dfe07a;p=gdcm.git * gdcmPython/ : amelioration to load Version with the library -- BeNours --- diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index c5488ece..b48dc60b 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -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"