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
|
Runnable PythonRunConfiguration::runnable() const
|
||||||
{
|
{
|
||||||
|
CommandLine cmd{executable(), {}};
|
||||||
|
cmd.addArg(mainScript());
|
||||||
|
cmd.addArgs(aspect<ArgumentsAspect>()->arguments(macroExpander()));
|
||||||
|
|
||||||
Runnable r;
|
Runnable r;
|
||||||
QtcProcess::addArg(&r.commandLineArguments, mainScript());
|
r.setCommandLine(cmd);
|
||||||
QtcProcess::addArgs(&r.commandLineArguments,
|
|
||||||
aspect<ArgumentsAspect>()->arguments(macroExpander()));
|
|
||||||
r.executable = executable().toString();
|
|
||||||
r.environment = aspect<EnvironmentAspect>()->environment();
|
r.environment = aspect<EnvironmentAspect>()->environment();
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user