Debugger/DebuggerInterfacePython3.py

changeset 3656
441956d8fce5
parent 3640
2bf828881e86
child 3670
f0cb7579c0b4
diff -r ffeb85cdc72d -r 441956d8fce5 Debugger/DebuggerInterfacePython3.py
--- a/Debugger/DebuggerInterfacePython3.py	Sun Jun 29 14:00:30 2014 +0200
+++ b/Debugger/DebuggerInterfacePython3.py	Sun Jun 29 20:13:56 2014 +0200
@@ -12,8 +12,9 @@
 import sys
 import os
 
-from PyQt4.QtCore import QObject, QTextCodec, QProcess, QTimer
-from PyQt4.QtGui import QInputDialog
+from PyQt5.QtCore import QObject, QTextCodec, QProcess, QProcessEnvironment, \
+    QTimer
+from PyQt5.QtWidgets import QInputDialog
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -129,10 +130,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