src/eric7/DebugClients/Python/DebugUtilities.py

branch
eric7-maintenance
changeset 9654
7328efba128b
parent 9653
e67609152c5e
child 10321
4a017fdf316f
diff -r 88f10deec960 -r 7328efba128b src/eric7/DebugClients/Python/DebugUtilities.py
--- a/src/eric7/DebugClients/Python/DebugUtilities.py	Thu Dec 01 10:18:07 2022 +0100
+++ b/src/eric7/DebugClients/Python/DebugUtilities.py	Mon Jan 02 11:16:03 2023 +0100
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2015 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
+# Copyright (c) 2015 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
 #
 
 """
@@ -295,6 +295,10 @@
     @return modified argument list
     @rtype list of str
     """
+    if not isPythonProgram(arguments[0]):
+        # it is not a Python program
+        return arguments
+
     debugClientScript = os.path.join(os.path.dirname(__file__), "DebugClient.py")
     if debugClientScript in arguments:
         # it is already patched

eric ide

mercurial