[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/DateTime/tests -testDateTime.py:1.12.6.3

Fred L. Drake, Jr. fdrake@acm.org
Thu, 17 Oct 2002 11:34:54 -0400


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