eric6/DebugClients/Python/MultiProcessDebugExtension.py

changeset 8222
5994b80b8760
parent 7973
e836d196e888
child 8243
cc717c2ae956
--- a/eric6/DebugClients/Python/MultiProcessDebugExtension.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/DebugClients/Python/MultiProcessDebugExtension.py	Sun Apr 11 18:45:10 2021 +0200
@@ -306,20 +306,23 @@
         frame = None    # Just make sure we don't hold on to it.
         
         childProcess = getattr(os, originalName)()     # fork
-        if not childProcess and not isMultiprocessingPopen:
-            if isNewPythonProcess:
-                (wd, host, port, exceptions, tracePython, redirect,
-                 noencoding) = _debugClient.startOptions
-                _debugClient.startDebugger(
-                    filename=sys.argv[0],
-                    host=host,
-                    port=port,
-                    enableTrace=multiprocess and not isSubprocessFork,
-                    exceptions=exceptions,
-                    tracePython=tracePython,
-                    redirect=redirect,
-                    passive=False,
-                    multiprocessSupport=multiprocess)
+        if (
+            not childProcess and
+            not isMultiprocessingPopen and
+            isNewPythonProcess
+        ):
+            (wd, host, port, exceptions, tracePython, redirect,
+             noencoding) = _debugClient.startOptions
+            _debugClient.startDebugger(
+                filename=sys.argv[0],
+                host=host,
+                port=port,
+                enableTrace=multiprocess and not isSubprocessFork,
+                exceptions=exceptions,
+                tracePython=tracePython,
+                redirect=redirect,
+                passive=False,
+                multiprocessSupport=multiprocess)
         return childProcess
     
     return newFork

eric ide

mercurial