incorrect path to orphaned .pyc files

Issue #60 resolved
Zooko O'Whielacronx created an issue

If you have a .pyc file with no corresponding .py file then will print out an error message and stop generation of the HTML output. The problem is that the error message gives the wrong path to the module -- using the CWD instead of the actual location of the .pyc file.

No source for code: '/Users/wade/src/simplegeo/SG/'

In this case it turned out to have nothing to do with /Users/wade/src/simplegeo/SG - there was actually an orphaned {{{init.pyc}}} file in a different directory that was also in the PYTHONPATH.

As a bonus it would be nice if could detect that the problem is a present .pyc file and absent .py file, but at least if it reports correct information about the path/name of the broken module that would make it easier for users to figure out their problem.

Comments (5)

  1. Log in to comment