Commit 1301f2bc authored by Jack Jansen's avatar Jack Jansen

__file__ now sometimes refers to the .pyc file

parent a4f03092
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment