summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index 889880dc86..d07c68cd9a 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -299,11 +299,12 @@ void PythonRunConfiguration::updateTargetInformation()
Runnable PythonRunConfiguration::runnable() const
{
+ CommandLine cmd{executable(), {}};
+ cmd.addArg(mainScript());
+ cmd.addArgs(aspect<ArgumentsAspect>()->arguments(macroExpander()));
+
Runnable r;
- QtcProcess::addArg(&r.commandLineArguments, mainScript());
- QtcProcess::addArgs(&r.commandLineArguments,
- aspect<ArgumentsAspect>()->arguments(macroExpander()));
- r.executable = executable().toString();
+ r.setCommandLine(cmd);
r.environment = aspect<EnvironmentAspect>()->environment();
return r;
}