From 024f6538066f69a18a5ef627ab6320536a0b6a43 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 1 Nov 2023 09:42:48 +0100 Subject: [PATCH] Python: initialize run configuration with kit python Change-Id: I85ebe906bee2d9bc88c443f0189a685ac97ee30d Reviewed-by: Reviewed-by: Christian Stenger --- src/plugins/python/pythonrunconfiguration.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/python/pythonrunconfiguration.cpp b/src/plugins/python/pythonrunconfiguration.cpp index 12141ba1a93..30e85439b5c 100644 --- a/src/plugins/python/pythonrunconfiguration.cpp +++ b/src/plugins/python/pythonrunconfiguration.cpp @@ -8,6 +8,7 @@ #include "pysidebuildconfiguration.h" #include "pysideuicextracompiler.h" #include "pythonconstants.h" +#include "pythonkitaspect.h" #include "pythonlanguageclient.h" #include "pythonproject.h" #include "pythonsettings.h" @@ -365,6 +366,9 @@ public: x11Forwarding.setMacroExpander(macroExpander()); x11Forwarding.setVisible(HostOsInfo::isAnyUnixHost()); + if (const std::optional kitPython = PythonKitAspect::python(target->kit())) + interpreter.setCurrentInterpreter(*kitPython); + setCommandLineGetter([this] { CommandLine cmd{interpreter.currentInterpreter().command}; if (!buffered())