forked from qt-creator/qt-creator
PythonEditor: Use Utils::CommandLine when creating a runnable
Change-Id: I670390f6034923d1f7f750435c0c8eb02d60b6f6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user