summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-29 09:25:27 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-29 09:25:27 +0000
commit336597ce48104849504da80934697c047004cc75 (patch)
treee5a7025233817d3d08952c9ba7410a84249dcb6a
parentAutomatically follow symlinks in the atomic_ofstream constructor. See bug #12... (diff)
downloadportage-idfetch-336597ce48104849504da80934697c047004cc75.tar.gz
portage-idfetch-336597ce48104849504da80934697c047004cc75.tar.bz2
portage-idfetch-336597ce48104849504da80934697c047004cc75.zip
Ignore more system libraries in python-trace mode.
svn path=/main/trunk/; revision=3035
-rw-r--r--pym/portage_debug.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pym/portage_debug.py b/pym/portage_debug.py
index 318754d7..2ee8bcf2 100644
--- a/pym/portage_debug.py
+++ b/pym/portage_debug.py
@@ -19,15 +19,14 @@ def set_trace(on=True):
class trace_handler(object):
def __init__(self):
- python_base = None
+ python_system_paths = []
for x in sys.path:
if os.path.basename(x).startswith("python2."):
- python_base = x
- break
+ python_system_paths.append(x)
self.ignore_prefixes = []
- if python_base is not None:
- self.ignore_prefixes.append(python_base + os.sep)
+ for x in python_system_paths:
+ self.ignore_prefixes.append(x + os.sep)
self.trim_filename = prefix_trimmer(os.path.join(portage_const.PORTAGE_BASE_PATH, "pym") + os.sep).trim
self.show_local_lines = False