all repos — mgba @ 828be44ac23704a09e6caa1783f495f1c49ecb2c

mGBA Game Boy Advance Emulator

Python: Set environment variable properly
Vicki Pfau vi@endrift.com
Sun, 13 Aug 2017 13:24:51 -0700
commit

828be44ac23704a09e6caa1783f495f1c49ecb2c

parent

bbb74a47a1fe69870c651c93ed31337d52243535

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/python/CMakeLists.txtsrc/platform/python/CMakeLists.txt

@@ -50,5 +50,5 @@ endif()

string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/test_" "" TEST_NAME "${TEST}") string(REPLACE ".py" "" TEST_NAME "${TEST_NAME}") add_test(python-${TEST_NAME} ${PYTHON} ${CMAKE_CURRENT_BINARY_DIR}/setup.py pytest --addopts ${TEST}) - set_tests_properties(python-${TEST_NAME} PROPERTIES ${PATH} "${BINDIR}") + set_tests_properties(python-${TEST_NAME} PROPERTIES ENVIRONMENT "${PATH}=${CMAKE_CURRENT_BINARY_DIR}/..") endforeach()