Carreau/ipython — pull request #2 by dwf (2012-11-05 23:21:55+00:00)
Title: Fix a small bug related to .pyc files.

If __file__ returns a file ending in .pyc (as it sometimes does, apparently) the original code would break and look for slidemode.pjs. This uses a safer filename mangling.