Getting started

Skip Montanaro skip at pobox.com
Sat Nov 3 05:45:03 EST 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