--- 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)