src/eric7/DebugClients/Python/MultiProcessDebugExtension.py

branch
eric7
changeset 9571
0e2ab682dfa3
parent 9482
a2bc06a54d9d
child 9586
2750e76fc366
diff -r 481cc0d3699d -r 0e2ab682dfa3 src/eric7/DebugClients/Python/MultiProcessDebugExtension.py
--- a/src/eric7/DebugClients/Python/MultiProcessDebugExtension.py	Tue Dec 06 11:24:53 2022 +0100
+++ b/src/eric7/DebugClients/Python/MultiProcessDebugExtension.py	Tue Dec 06 14:06:42 2022 +0100
@@ -72,8 +72,8 @@
         Function replacing the 'execl' functions of the os module.
         """
         if _shallPatch():
-            args = patchArguments(_debugClient, args)
             if isPythonProgram(args[0]):
+                args = patchArguments(_debugClient, args)
                 path = args[0]
         return getattr(os, originalName)(path, *args)
 
@@ -100,8 +100,8 @@
         Function replacing the 'execv' functions of the os module.
         """
         if _shallPatch():
-            args = patchArguments(_debugClient, args)
             if isPythonProgram(args[0]):
+                args = patchArguments(_debugClient, args)
                 path = args[0]
         return getattr(os, originalName)(path, args)
 
@@ -128,8 +128,8 @@
         Function replacing the 'execve' functions of the os module.
         """
         if _shallPatch():
-            args = patchArguments(_debugClient, args)
             if isPythonProgram(args[0]):
+                args = patchArguments(_debugClient, args)
                 path = args[0]
         return getattr(os, originalName)(path, args, env)
 

eric ide

mercurial