From a9d2e14dca0a04e261634b0b34b394aa7f66a29f Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 23 May 2019 18:10:34 +0200 Subject: ProjectExplorer: Add executable() accessor to RunConfiguration Amends f6c276daf0, which was a quick fix for 4.9. Change-Id: I94281af6a9a0d0bfe197ce836488f708d5bd677d Reviewed-by: hjk --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') 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(); setOutputFormatter(); + setExecutableGetter([this] { + return FileName::fromString(aspect()->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()->arguments(macroExpander())); - r.executable = aspect()->value(); + r.executable = executable().toString(); r.environment = aspect()->environment(); return r; } -- cgit v1.2.1