Empty sys.path[0]

Michal Wallace sabren at manifestation.com
Sat Jul 7 12:06:40 EDT 2001


On 7 Jul 2001, Gustaf Liljegren wrote:

> The problem is that I can't find a way to get this directory. The
> docs say that sys.path[0] should be used for this, but that does
> only return an empty string.

Where do the docs say this? It sounds like a mistake, or something
that needs clarification..

you want os.getcwd()

Cheers,

- Michal
------------------------------------------------------------------------
www.manifestation.com  www.sabren.net  www.linkwatcher.com  www.zike.net
------------------------------------------------------------------------





More information about the Python-list mailing list