diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-03-02 16:57:01 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-03-02 16:57:01 (GMT) |
commit | 1301f2bc1800d2185f285dbac06c55bd5dc8c4fb (patch) | |
tree | 5818c0a360d2fa575afd7ecb2753b89eff043443 /Mac/Lib | |
parent | a4f03092820d10dda2b30093e26281ee27ebbc8d (diff) | |
download | cpython-1301f2bc1800d2185f285dbac06c55bd5dc8c4fb.zip cpython-1301f2bc1800d2185f285dbac06c55bd5dc8c4fb.tar.gz cpython-1301f2bc1800d2185f285dbac06c55bd5dc8c4fb.tar.bz2 |
__file__ now sometimes refers to the .pyc file
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/findmodulefiles.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ def mkpycresourcefile(list, main='', dst=None): 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 |