Debugger/DebuggerInterfaceRuby.py

changeset 3656
441956d8fce5
parent 3484
645c12de6b0c
child 3670
f0cb7579c0b4
--- a/Debugger/DebuggerInterfaceRuby.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/Debugger/DebuggerInterfaceRuby.py	Sun Jun 29 20:13:56 2014 +0200
@@ -11,7 +11,8 @@
 
 import os
 
-from PyQt4.QtCore import QObject, QTextCodec, QProcess, QTimer
+from PyQt5.QtCore import QObject, QTextCodec, QProcess, QProcessEnvironment, \
+    QTimer
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -123,10 +124,10 @@
         """
         proc = QProcess()
         if environment is not None:
-            env = []
+            env = QProcessEnvironment()
             for key, value in list(environment.items()):
-                env.append("{0}={1}".format(key, value))
-            proc.setEnvironment(env)
+                env.insert(key, value)
+            proc.setProcessEnvironment(env)
         args = []
         for arg in arguments:
             args.append(arg)

eric ide

mercurial