__file__ in 2.0
Bryan Mongeau
bryan at eevolved.com
Wed Dec 13 01:46:31 EST 2000
Hi all,
I am interested in the mcmillan installer to generate self-extracting exe's.
Unfortunately, running source/Make.py results in an AttributeError on
exceptions.__file__ calls.
I understand that static modules (such is the case) do not define the
__file__ attribute. Documention pointed me to use .repr() or .str() instead
to get the filename of a loaded module. No such luck when I edit the script
(Attribute errors again)...
Which leads me to my next question: is the mcmillan installer project
stagnant? The release contains __file__ calls which crap out in 2.0 and
they haven't even mentioned this on the site at all... Kinda leaves newbies
like me scratching our heads.
And my final question: How do I call __file__ on static modules in 2.0??
Tips, advice welcome.
--
<==================================>
Bryan Mongeau
Lead Developer, Director
eEvolved Real-Time Technologies Inc.
www.eevolved.com
<==================================>
"... the true utility function of life, that which is being maximized in
the natural world, is DNA survival. But DNA is not floating free; it is
locked up in living bodies and it has make the most of the levers of power
at its disposal." -- Richard Dawkins
More information about the Python-list
mailing list