__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