how can I implement "cd" like shell in Python?

Christian Heimes lists at cheimes.de
Thu Jun 28 13:35:38 CEST 2012


Am 28.06.2012 13:09, schrieb Sergi Pasoev:
> Do you mean to implement the cd command ? To what extent do you want to
> implement it ? if what you want is just to have a script to change the
> current working directory, it is as easy as this:

Please note that you can't change the working directory of another
process. Your snipplet won't alter the current working directory of the
shell. "cd" is a builtin shell command, not a binary.

Christian



More information about the Python-list mailing list