]> https://gitweb.dealii.org/ - dealii.git/commitdiff
contrib/python_wrapper: set environment correctly 10290/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 20 May 2020 19:49:32 +0000 (14:49 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 20 May 2020 19:53:08 +0000 (14:53 -0500)
contrib/python-bindings/tests/CMakeLists.txt

index a9187973f17ba5f1264cb023292bd7fb0632f894..a54c8a3f7068d705adf02437247298b4ec3d4fd0 100644 (file)
@@ -25,9 +25,7 @@ FOREACH(_test_path ${_tests})
  GET_FILENAME_COMPONENT(_test_directory ${_test_path} DIRECTORY)
  ADD_TEST(NAME python-bindings/${_test} COMMAND ${PYTHON_EXECUTABLE} ${_test_path})
  SET_TESTS_PROPERTIES(python-bindings/${_test} PROPERTIES ENVIRONMENT
-   PYTHONPATH=${CMAKE_BINARY_DIR}/${DEAL_II_PYTHON_RELDIR}/../:$ENV{PYTHONPATH}
-   ENVIRONMENT
-   DEAL_II_PYTHON_TESTPATH=${_test_directory}
+   "PYTHONPATH=${CMAKE_BINARY_DIR}/${DEAL_II_PYTHON_RELDIR}/../:$ENV{PYTHONPATH};DEAL_II_PYTHON_TESTPATH=${_test_directory}"
    )
 ENDFOREACH()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.