SET(PYTHON_EXECUTABLE_PATHS)
ELSE(NOT PYTHON_ROOT_USER)
IF(WINDOWS)
- SET(PYTHON_EXECUTABLE_PATHS ${PYTHON_ROOT_USER} ${PYTHON_ROOT_USER}/bin ${PYTHON_ROOT_USER}/PCbuild)
+ SET(PYTHON_EXECUTABLE_PATHS ${PYTHON_ROOT_USER})
ELSE(WINDOWS)
SET(PYTHON_EXECUTABLE_PATHS ${PYTHON_ROOT_USER}/bin)
ENDIF(WINDOWS)
IF(PYTHON_EXECUTABLE STREQUAL /usr/bin/python)
ELSE(PYTHON_EXECUTABLE STREQUAL /usr/bin/python)
SET(PYTHON_ROOT_USER ${PYTHON_EXECUTABLE})
- IF(PYTHON_EXECUTABLE STREQUAL ${PYTHON_ROOT_USER}/${PYTHON_EXECUTABLE_TO_FIND})
+ GET_FILENAME_COMPONENT(PYTHON_ROOT_USER ${PYTHON_ROOT_USER} PATH)
+ IF(NOT WINDOWS)
GET_FILENAME_COMPONENT(PYTHON_ROOT_USER ${PYTHON_ROOT_USER} PATH)
- ELSE(PYTHON_EXECUTABLE STREQUAL ${PYTHON_ROOT_USER}/${PYTHON_EXECUTABLE_TO_FIND})
- GET_FILENAME_COMPONENT(PYTHON_ROOT_USER ${PYTHON_ROOT_USER} PATH)
- GET_FILENAME_COMPONENT(PYTHON_ROOT_USER ${PYTHON_ROOT_USER} PATH)
- ENDIF(PYTHON_EXECUTABLE STREQUAL ${PYTHON_ROOT_USER}/${PYTHON_EXECUTABLE_TO_FIND})
+ ENDIF(NOT WINDOWS)
ENDIF(PYTHON_EXECUTABLE STREQUAL /usr/bin/python)
ELSE(PYTHON_EXECUTABLE)
IF(PYTHON_ROOT_USER)