diff options
author | hjk <hjk@qt.io> | 2019-06-04 11:05:32 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-06-04 10:17:52 +0000 |
commit | 7d02a76be1888125b924f579ed2776ed80cc02fc (patch) | |
tree | 263da8011e85da8a3dd01c94132c5de354088acf /src/plugins/pythoneditor/pythoneditorplugin.cpp | |
parent | e6bda58033befaa0d013a826637e8e966410a5b5 (diff) | |
download | qt-creator-7d02a76be1888125b924f579ed2776ed80cc02fc.tar.gz |
PythonEditor: Use Utils::CommandLine when creating a runnable
Change-Id: I670390f6034923d1f7f750435c0c8eb02d60b6f6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorplugin.cpp | 9 |
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; } |