sys.path[0] in IDLE

David Harris dpharris76 at
Sun Dec 28 17:28:07 CET 2003

On 2003-12-27, Gabriel Genellina <gagenellina at> wrote:
> At 26/12/2003 22:25, you wrote:
>>Am I reading this correctly?
>>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.

Dave Harris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list