From 1301f2bc1800d2185f285dbac06c55bd5dc8c4fb Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 2 Mar 1998 16:57:01 +0000 Subject: [PATCH] __file__ now sometimes refers to the .pyc file --- Mac/Lib/findmodulefiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mac/Lib/findmodulefiles.py b/Mac/Lib/findmodulefiles.py index 0a55c8fa4462..267e89e30ce8 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