55 else: |
55 else: |
56 # create a copy of the arguments |
56 # create a copy of the arguments |
57 arguments = arguments[:] |
57 arguments = arguments[:] |
58 ok = isPythonProgram(arguments[0]) |
58 ok = isPythonProgram(arguments[0]) |
59 if ok: |
59 if ok: |
60 if startsWithShebang(arguments[0]): |
60 scriptName = os.path.basename(arguments[0]) |
61 scriptName = os.path.basename(arguments[0]) |
|
62 else: |
|
63 # TODO: this seems to be weird |
|
64 scriptName = os.path.basename(arguments[0]) |
|
65 if scriptName not in _debugClient.noDebugList: |
61 if scriptName not in _debugClient.noDebugList: |
66 arguments = patchArguments( |
62 arguments = patchArguments( |
67 _debugClient, arguments, noRedirect=True |
63 _debugClient, arguments, noRedirect=True |
68 ) |
64 ) |
69 |
65 |