Added code to the Python debugger backends to skip over 'site-packages' and 'dist-packages' if Python tracing is disabled. 5_3_x

Sat, 29 Jun 2013 18:40:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Jun 2013 18:40:45 +0200
branch
5_3_x
changeset 2762
423835fb1204
parent 2760
79aa3d4f2216
child 2764
1d85539ac41a

Added code to the Python debugger backends to skip over 'site-packages' and 'dist-packages' if Python tracing is disabled.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Sat Jun 29 17:36:26 2013 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Sat Jun 29 18:40:45 2013 +0200
@@ -1193,6 +1193,11 @@
             if afn.startswith(d):
                 return 1
         
+        # special treatment for paths containing site-packages or dist-packages
+        for part in ["site-packages", "dist-packages"]:
+            if part in afn:
+                return 1
+        
         return 0
         
     def getRunning(self):
--- a/DebugClients/Python3/DebugClientBase.py	Sat Jun 29 17:36:26 2013 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Sat Jun 29 18:40:45 2013 +0200
@@ -1203,6 +1203,11 @@
             if afn.startswith(d):
                 return True
         
+        # special treatment for paths containing site-packages or dist-packages
+        for part in ["site-packages", "dist-packages"]:
+            if part in afn:
+                return True
+        
         return False
     
     def getRunning(self):

eric ide

mercurial