From a77c08a6512b079175d08ae1732b9f65c79b687f Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Fri, 19 Nov 2021 10:35:27 +0100 Subject: scriptable: make it work by default on macOS, too Some platforms like Homebrew's macOS name the Python interpreter "python3", while others use "python" as the default name. In any case, it is correct to use the Python 3 version as default, because Python 2 is deprecated. The default now tries "python3" first and falls back to "python". Task-number: PYSIDE-1710 Change-Id: I8850b2c157d219e7785177f41425dca1c2144f99 Pick-to: 6.2 5.15 Reviewed-by: Friedemann Kleint --- examples/scriptableapplication/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/scriptableapplication') diff --git a/examples/scriptableapplication/CMakeLists.txt b/examples/scriptableapplication/CMakeLists.txt index 63b70c5da..8cb58a330 100644 --- a/examples/scriptableapplication/CMakeLists.txt +++ b/examples/scriptableapplication/CMakeLists.txt @@ -18,7 +18,7 @@ find_package(Qt6 COMPONENTS Widgets) # Use provided python interpreter if given. if(NOT python_interpreter) - find_program(python_interpreter "python") + find_program(python_interpreter NAMES python3 python) endif() message(STATUS "Using python interpreter: ${python_interpreter}") -- cgit v1.2.3