diff options
| author | David Schulz <david.schulz@qt.io> | 2023-11-01 09:42:48 +0100 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2023-11-03 08:09:17 +0000 |
| commit | 024f6538066f69a18a5ef627ab6320536a0b6a43 (patch) | |
| tree | 110c27d88bbb710ba28bf95d74da20e9e8cba66f /src/plugins/python/pythonrunconfiguration.cpp | |
| parent | f5e12237a2ad17665749f10bebb83c3852b539ce (diff) | |
Python: initialize run configuration with kit python
Change-Id: I85ebe906bee2d9bc88c443f0189a685ac97ee30d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonrunconfiguration.cpp')
| -rw-r--r-- | src/plugins/python/pythonrunconfiguration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<Interpreter> kitPython = PythonKitAspect::python(target->kit())) + interpreter.setCurrentInterpreter(*kitPython); + setCommandLineGetter([this] { CommandLine cmd{interpreter.currentInterpreter().command}; if (!buffered()) |
