Skip to content
Snippets Groups Projects
Commit a0f0fb2e authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

PYTHONPATH set s.t. unit tests prefer compiled version

parent bbcd0d77
No related branches found
No related tags found
No related merge requests found
......@@ -702,9 +702,9 @@ macro(ost_unittest)
foreach(py_test ${PY_TESTS})
set(python_path $ENV{PYTHONPATH})
if(python_path)
set(python_path "${python_path}:")
set(python_path ":${python_path}")
endif(python_path)
set(python_path "${python_path}${LIB_STAGE_PATH}/python${PYTHON_VERSION}/site-packages")
set(python_path "${LIB_STAGE_PATH}/python${PYTHON_VERSION}/site-packages${python_path}")
if(WIN32)
set (PY_TESTS_CMD "PYTHONPATH=${python_path} ${PYTHON_BINARY}")
# todo fix python unit test running for Windows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment