Python: add Python process environment to launch of script editor.

This commit is contained in:
Gaute Lindkvist 2019-08-01 15:10:09 +02:00
parent ec1cf83b4e
commit 712fd2a160

View File

@ -61,6 +61,7 @@ void RicEditScriptFeature::onActionTriggered(bool isChecked)
arguments << calcScript->absoluteFileName;
QProcess* myProcess = new QProcess(this);
myProcess->setProcessEnvironment(app->pythonProcessEnvironment());
myProcess->start(scriptEditor, arguments);
if (!myProcess->waitForStarted(1000))