summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-05-23 18:10:34 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-05-24 09:12:42 +0000
commita9d2e14dca0a04e261634b0b34b394aa7f66a29f (patch)
tree8a1ba1d7369f8a73d5efb4805bb36a83d0035ec7 /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentb7755b18c3656faa5bab042067d476fe70636f9c (diff)
downloadqt-creator-a9d2e14dca0a04e261634b0b34b394aa7f66a29f.tar.gz
ProjectExplorer: Add executable() accessor to RunConfiguration
Amends f6c276daf0, which was a quick fix for 4.9. Change-Id: I94281af6a9a0d0bfe197ce836488f708d5bd677d Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index 1448546cbd..fe5c7189dc 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -279,6 +279,9 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Core::Id id)
addAspect<TerminalAspect>();
setOutputFormatter<PythonOutputFormatter>();
+ setExecutableGetter([this] {
+ return FileName::fromString(aspect<InterpreterAspect>()->value());
+ });
connect(target, &Target::applicationTargetsChanged,
this, &PythonRunConfiguration::updateTargetInformation);
@@ -300,7 +303,7 @@ Runnable PythonRunConfiguration::runnable() const
QtcProcess::addArg(&r.commandLineArguments, mainScript());
QtcProcess::addArgs(&r.commandLineArguments,
aspect<ArgumentsAspect>()->arguments(macroExpander()));
- r.executable = aspect<InterpreterAspect>()->value();
+ r.executable = executable().toString();
r.environment = aspect<EnvironmentAspect>()->environment();
return r;
}