Getting started

Skip Montanaro skip at pobox.com
Sat Nov 3 11:45:03 CET 2001


    Jive> But isn't there a way to change directories (cd) from the Python
    Jive> command line?

Yes, you can execute os.chdir:

    >>> import os
    >>> os.getcwd()
    '/home/skip/tmp'
    >>> os.chdir("/tmp")
    >>> os.getcwd()
    '/tmp'

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list