sys.path[0] in IDLE

David Harris dpharris76 at msn.com
Sun Dec 28 11:28:07 EST 2003


On 2003-12-27, Gabriel Genellina <gagenellina at softlab.com.ar> wrote:
> At 26/12/2003 22:25, you wrote:
>
>>Am I reading this correctly?
>>
>>http://python.org/doc/current/lib/module-sys.html
>>
>>"""
>>As initialized upon program startup, the first item of this list,
>>path[0], is the directory containing the script that was used to
>>invoke the Python interpreter.
>>"""
>>
>>
>>So, sys.path[0] should be the directory that my script is in?

Back in March 2003, I had the following exchange with Kurt Kaiser on the Idle-dev list. This may clear things up for you.

http://mail.python.org/pipermail/idle-dev/2003-March/001672.html

FWIW,
Dave Harris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20031228/a5e50120/attachment.html>


More information about the Python-list mailing list