Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2017-03-13 14:41:59 +0300
committerGhostkeeper <rubend@tutanota.com>2017-03-13 14:41:59 +0300
commitb29ccdc6593b59dfe288c37f03995edc6c6fd7b2 (patch)
treef0bc8264c86b9ed52b56a2ba00922aad1b3c6873 /cmake
parente83fd3a321ca4854a2a70d5eb2afe0cc2bb87e8d (diff)
Add Uranium to PYTHONPATH for testing
This 'assumes' you have Uranium as a sister-directory next to Cura. This is how it's always been. We should probably change that to a CMake variable some day.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CuraTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CuraTests.cmake b/cmake/CuraTests.cmake
index d0cc842132..ff529f7d25 100644
--- a/cmake/CuraTests.cmake
+++ b/cmake/CuraTests.cmake
@@ -35,6 +35,6 @@ foreach(_plugin ${_plugins})
get_filename_component(_plugin_directory ${_plugin} DIRECTORY)
if(EXISTS ${_plugin_directory}/tests)
get_filename_component(_plugin_name ${_plugin_directory} NAME)
- cura_add_test(NAME pytest-${_plugin_name} DIRECTORY ${_plugin_directory} PYTHONPATH "${CMAKE_SOURCE_DIR}:${_plugin_directory}")
+ cura_add_test(NAME pytest-${_plugin_name} DIRECTORY ${_plugin_directory} PYTHONPATH "${CMAKE_SOURCE_DIR}/../Uranium:${CMAKE_SOURCE_DIR}:${_plugin_directory}")
endif()
endforeach()