Python + windows + problems with make.py
gmcm at hypernet.com
Sun Feb 10 10:08:56 EST 2002
Fredrik Lundh wrote:
> "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 ?
>> 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?
Sounds good to me :-).
> 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.
For Python 1.5, Installer on Linux freezes exceptions.py
into the embedding executable. In later versions, this
is conditional, but the original poster was using a version
written when 1.5 was current.
More information about the Python-list