Python + windows + problems with make.py

Fredrik Lundh fredrik at pythonware.com
Sun Feb 10 07:52:53 EST 2002


"gombosk at vas.birosag.hu" wrote:
> 3. I've got the next:
>
> reading exceptions from
> Traceback (most recent call last):
>   File "./Make.py", line 133, in ?
>     main()
>   File "./Make.py", line 73, in main
>     print "reading exceptions from", exceptions.__file__
> AttributeError: 'exceptions' module has no attribute '__file__'
>
> Yes, exceptions module has no attribue '__file__'
>
> What can I do

remove the print statement?

blame it all on me and barry?

:::

in recent versions of Python, exceptions is a built-in module
(on all platforms).

if you really need to know where the standard library is, check
the __file__ attribute of some other module (e.g. os or string),
use sys.prefix, or scan the sys.path list.

hope this helps!

</F>

<!-- (the eff-bot guide to) the python standard library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list