[Python-Dev] Re: Change to sys.path[0] for Python 2.3
Jack Jansen
jack@oratrix.nl
Tue, 27 Nov 2001 14:52:43 +0100
> 4) For the "-c" option, sys.argv[0] is getcwd() instead of "".
A related issue: what is sys.path[0] for an interactive interpreter? I
customarily use Python as a shell, and os.chdir() from one place to another,
importing things along the way. Would an interactive interpreter keep the ""
entry in sys.path[0]?
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm