PythonEditor: Ensure to set environment

Change-Id: Ie216b28b7effb2d44ba507dffa07bb7f463030e7
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-03-11 07:32:46 +01:00
parent d7b0c41c6b
commit 325ed9a1de
2 changed files with 4 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ void PdbEngine::setupEngine()
QStringList args = { bridge, scriptFile.fileName() };
args.append(Utils::QtcProcess::splitArgs(runParameters().inferior.workingDirectory));
showMessage(_("STARTING ") + m_interpreter + QLatin1Char(' ') + args.join(QLatin1Char(' ')));
m_proc.setEnvironment(runParameters().debuggerEnvironment.toStringList());
m_proc.start(m_interpreter, args);
if (!m_proc.waitForStarted()) {