[Zope-Coders] Re: [Zope-Checkins] CVS:
Zope/lib/python/DateTime/tests -testDateTime.py:1.12.6.3
Andreas Jung
andreas@andreas-jung.com
Thu, 17 Oct 2002 17:42:59 +0200
Is there a reason why __file__ can not be set automatically by
Python ?
-aj
--On Donnerstag, 17. Oktober 2002 11:34 -0400 "Fred L. Drake, Jr."
<fdrake@acm.org> wrote:
>
> Guido van Rossum writes:
> > Correct. In that case, sys.argv[0] will usually work, though that's
> > up to the shell, and there are cases where you won't be able to
> > recover the true directory (e.g. when the shell's PATH is different
> > from what is exported into os.environ).
>
> All the more reason to always set __file__!
>
>
> -Fred
>
> --
> Fred L. Drake, Jr. <fdrake at acm.org>
> PythonLabs at Zope Corporation
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders
---------------------------------------------------------------------
- Andreas Jung http://www.andreas-jung.com -
- EMail: andreas at andreas-jung.com -
- "Life is too short to (re)write parsers" -
---------------------------------------------------------------------