eric6/DebugClients/Python/SubprocessExtension.py

branch
multi_processing
changeset 7875
12c621ed4377
parent 7873
cb2badbdf26c
child 7901
6ff7ccf0cb50
--- a/eric6/DebugClients/Python/SubprocessExtension.py	Mon Dec 14 19:23:25 2020 +0100
+++ b/eric6/DebugClients/Python/SubprocessExtension.py	Mon Dec 14 19:59:03 2020 +0100
@@ -11,7 +11,7 @@
 import os
 import shlex
 
-from DebugUtilities import isPythonProgram, startsWithShebang, patchArguments
+from DebugUtilities import isPythonProgram, patchArguments
 
 _debugClient = None
 
@@ -57,11 +57,7 @@
                     arguments = arguments[:]
                 ok = isPythonProgram(arguments[0])
                 if ok:
-                    if startsWithShebang(arguments[0]):
-                        scriptName = os.path.basename(arguments[0])
-                    else:
-                        # TODO: this seems to be weird
-                        scriptName = os.path.basename(arguments[0])
+                    scriptName = os.path.basename(arguments[0])
                     if scriptName not in _debugClient.noDebugList:
                         arguments = patchArguments(
                             _debugClient, arguments, noRedirect=True

eric ide

mercurial