Simple Qu: Changing directory

Gordon McMillan gmcm at hypernet.com
Sat Jul 10 20:30:04 EDT 1999


Nick Bower wrote:

> I feel really dumb asking this question, but how do I change the
> current working directory?  For browsing the file system I mean.
> 
> I've found exec commands, but these would surely be device dependent
> and there doesn't seem to be anything obvious in the os or os.path
> documentation.  i looked through the tutorials too.

os.chdir()

- Gordon




More information about the Python-list mailing list