I found it. [Re: Getting started]

Gustavo Niemeyer niemeyer at conectiva.com
Fri Nov 2 23:01:36 EST 2001


> I found it.  os.chdir()
> 
> BTW, the system lets me change the variable os.curdir, but that seems to
> have no effect.  If I next do an os.chdir to some other directory, the
> variable os.curdir does not change.

I guess you're looking for os.getcwd().

pydoc will give you a hand at these tasks:

>>> import os, pydoc
>>> pydoc.help(os)

Or from the command line:

pydoc os


Best regards!

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20011103/5e8916ee/attachment.sig>


More information about the Python-list mailing list