src/eric7/DebugClients/Python/DebugUtilities.py

branch
eric7-maintenance
changeset 9654
7328efba128b
parent 9653
e67609152c5e
child 10321
4a017fdf316f
equal deleted inserted replaced
9555:88f10deec960 9654:7328efba128b
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2015 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2015 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing utilities functions for the debug client. 7 Module implementing utilities functions for the debug client.
8 """ 8 """
293 @param noRedirect flag indicating to not redirect stdin and stdout 293 @param noRedirect flag indicating to not redirect stdin and stdout
294 @type bool 294 @type bool
295 @return modified argument list 295 @return modified argument list
296 @rtype list of str 296 @rtype list of str
297 """ 297 """
298 if not isPythonProgram(arguments[0]):
299 # it is not a Python program
300 return arguments
301
298 debugClientScript = os.path.join(os.path.dirname(__file__), "DebugClient.py") 302 debugClientScript = os.path.join(os.path.dirname(__file__), "DebugClient.py")
299 if debugClientScript in arguments: 303 if debugClientScript in arguments:
300 # it is already patched 304 # it is already patched
301 return arguments 305 return arguments
302 306

eric ide

mercurial