fix trace.py --ignore-dir

This commit is contained in:
Skip Montanaro 2007-02-11 18:24:37 +00:00
parent 1fbe3ab5de
commit 691acf2879
2 changed files with 4 additions and 1 deletions

View file

@ -587,7 +587,7 @@ class Trace:
"""
if why == 'call':
code = frame.f_code
filename = code.co_filename
filename = frame.f_globals.get('__file__', None)
if filename:
# XXX modname() doesn't work right for packages, so
# the ignore support won't work right for packages