commit | 1301f2bc1800d2185f285dbac06c55bd5dc8c4fb | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Mon Mar 02 16:57:01 1998 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Mon Mar 02 16:57:01 1998 +0000 |
tree | 5818c0a360d2fa575afd7ecb2753b89eff043443 | |
parent | a4f03092820d10dda2b30093e26281ee27ebbc8d [diff] [blame] |
__file__ now sometimes refers to the .pyc file
diff --git a/Mac/Lib/findmodulefiles.py b/Mac/Lib/findmodulefiles.py index 0a55c8f..267e89e 100644 --- a/Mac/Lib/findmodulefiles.py +++ b/Mac/Lib/findmodulefiles.py
@@ -80,6 +80,9 @@ print '%5d\t%s\t%s'%(id, name, main) for name, location in list: if not location: continue + if location[-4:] == '.pyc': + # Attempt corresponding .py + location = location[:-1] if location[-3:] != '.py': print '*** skipping', location continue