]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Synchronize adm files
authorMaintenance team (INV) <mnt@opencascade.com>
Tue, 16 Feb 2016 18:33:23 +0000 (21:33 +0300)
committerMaintenance team (INV) <mnt@opencascade.com>
Tue, 16 Feb 2016 18:33:23 +0000 (21:33 +0300)
cmake_files/FindSalomePythonInterp.cmake

index 8b20e14cc4390f4fd1f30a977d22afedd0421ebc..ef1a8d7d22d06b35eb11e3cfdabbe0757232c656 100644 (file)
@@ -40,6 +40,8 @@ SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PythonInterp PYTHON_EXECUTABLE 1)
 
 IF(SALOMEPYTHONINTERP_FOUND) 
   SET(PYTHON_PYTHONPATH "${PYTHON_ROOT_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
+  GET_FILENAME_COMPONENT(_python_bin "${PYTHON_EXECUTABLE}" NAME )
+  SET(PYTHONBIN "${_python_bin}" CACHE STRING "Name of Python interpreter")
   SALOME_ACCUMULATE_ENVIRONMENT(PATH ${PYTHON_EXECUTABLE})
   SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH ${PYTHON_PYTHONPATH})
 ENDIF()