forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user