Can't import ask_wx from python console
Brought to you by:
linkjuggler,
mtnyogi
Hello,
in the interactive python console, sys.modules['__main__'] won't have a __file__ attribute so importing it will give you:
>>> import pyke.ask_wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/pyke/ask_wx.py", line 45, in <module>
or 'doctest' not in sys.modules['__main__'].__file__):
AttributeError: 'module' object has no attribute '__file__'
Cheers,
Daniele Tricoli