Alex chen <wustcsvstu...@vip.qq.com> wrote:

>I just want to write a python program,it can be called in the linux
>terminal like the command "cd" to change the directory of the shell
>terminal 
>

This cannot be done. Shells implement cd as a builtin, rather than a command 
such as /usr/bin/cd because there is no way to change the current working 
directory of your parent process. 

Also, policy on this mailing list is to put your reply below the text you are 
quoting, as I'm doing here. It's called bottom posting. 

<snipped further quoted material>

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to