From: spo Date: Tue, 29 Dec 2015 08:37:59 +0000 (+0300) Subject: Issue #803: Put all the python modules in the same python package newgeom X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fspo%2Fpython;p=modules%2Fshaper.git Issue #803: Put all the python modules in the same python package newgeom --- diff --git a/CMakeCommon/UnitTest.cmake b/CMakeCommon/UnitTest.cmake index 57dc29246..1f08bf620 100644 --- a/CMakeCommon/UnitTest.cmake +++ b/CMakeCommon/UnitTest.cmake @@ -35,7 +35,7 @@ MACRO(ADD_UNIT_TESTS) STRING(REPLACE ";" "\\;" _PYTHONPATH "${_PYTHONPATH}") else() SET(_LD_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/bin:${CMAKE_INSTALL_PREFIX}/swig:${CMAKE_INSTALL_PREFIX}/plugins:${SUIT_LIB_DIR}:$ENV{LD_LIBRARY_PATH}") - SET(_PYTHONPATH "${CMAKE_INSTALL_PREFIX}/swig:${CMAKE_INSTALL_PREFIX}/plugins:${CMAKE_INSTALL_PREFIX}/addons:${CMAKE_INSTALL_PREFIX}/pythonAPI:$ENV{PYTHONPATH}") + SET(_PYTHONPATH "${CMAKE_BINARY_DIR}:${CMAKE_INSTALL_PREFIX}/swig:${CMAKE_INSTALL_PREFIX}/pythonAPI:$ENV{PYTHONPATH}") endif() SET(_CONFIG_FILE "${CMAKE_INSTALL_PREFIX}/plugins") diff --git a/CMakeLists.txt b/CMakeLists.txt index 53d9986e9..c13ebd35a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,10 @@ IF(UNIX) ENDIF(CMAKE_COMPILER_IS_GNUCC) ENDIF(UNIX) +SET (PYTHON_PACKAGE_NAME shaper) +#SET (PYTHON_PACKAGE_NAME openparts) +SET (PYTHONAPI_DIR PythonAPI/${PYTHON_PACKAGE_NAME}) + #IF(CMAKE_BUILD_TYPE MATCHES Release) ADD_SUBDIRECTORY (doc) #ENDIF(CMAKE_BUILD_TYPE MATCHES Release) diff --git a/env_linux.sh b/env_linux.sh index 2aaa7dbbd..84f66d49c 100644 --- a/env_linux.sh +++ b/env_linux.sh @@ -53,7 +53,13 @@ export PATH=${CASROOT}:${PATH} #------ NewGEOM ------ export PATH=${NEWGEOM_ROOT_DIR}/bin:${NEWGEOM_ROOT_DIR}/plugins:${PATH} -export PYTHONPATH=${NEWGEOM_ROOT_DIR}/swig:${NEWGEOM_ROOT_DIR}/plugins:${NEWGEOM_ROOT_DIR}/addons:${NEWGEOM_ROOT_DIR}/PythonAPI:${PYTHONPATH} + +export PYTHONPATH=${NEWGEOM_ROOT_DIR}/swig:${PYTHONPATH} +#export PYTHONPATH=${NEWGEOM_ROOT_DIR}/plugins:${PYTHONPATH} +#export PYTHONPATH=${NEWGEOM_ROOT_DIR}/addons:${PYTHONPATH} +export PYTHONPATH=${NEWGEOM_ROOT_DIR}/PythonAPI:${PYTHONPATH} + export LD_LIBRARY_PATH=${NEWGEOM_ROOT_DIR}/bin:${NEWGEOM_ROOT_DIR}/swig:${NEWGEOM_ROOT_DIR}/plugins:${LD_LIBRARY_PATH} export NEW_GEOM_CONFIG_FILE=${NEWGEOM_ROOT_DIR}/plugins export NewGeomResources=${NEWGEOM_ROOT_DIR}/resources + diff --git a/src/Config/plugins.xml.in b/src/Config/plugins.xml.in index af91d8fb2..2251b6106 100644 --- a/src/Config/plugins.xml.in +++ b/src/Config/plugins.xml.in @@ -8,8 +8,8 @@ - - + + @DEFAULT_SOLVER@