forked from qt-creator/qt-creator
Utils: Make SynchronousProcess use Utils::Environment for environments
Makes the interface more similar to QtcProcess. Change-Id: I58e57d9fdb7c37eb0d2a5c5eef8643d6be97c3cc Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -105,8 +105,11 @@ FilePath getPylsModulePath(CommandLine pylsCommand)
|
||||
return modulePath;
|
||||
|
||||
pylsCommand.addArg("-h");
|
||||
|
||||
SynchronousProcess pythonProcess;
|
||||
pythonProcess.setEnvironment(pythonProcess.environment() + QStringList("PYTHONVERBOSE=x"));
|
||||
Environment env = pythonProcess.environment();
|
||||
env.set("PYTHONVERBOSE", "x");
|
||||
pythonProcess.setEnvironment(env);
|
||||
SynchronousProcessResponse response = pythonProcess.runBlocking(pylsCommand);
|
||||
|
||||
static const QString pylsInitPattern = "(.*)"
|
||||
|
||||
Reference in New Issue
Block a user