Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24612
| References | <tencent_1CF49FCC4C0C838B70934640@qq.com> |
|---|---|
| Subject | Re: 回复: how can I implement "cd" like shell in Python? |
| From | Kushal Kumaran <kushal.kumaran@gmail.com> |
| Date | 2012-06-28 19:16 +0530 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1603.1340891193.4697.python-list@python.org> (permalink) |
Alex chen <wustcsvstudio@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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: 回复: how can I implement "cd" like shell in Python? Kushal Kumaran <kushal.kumaran@gmail.com> - 2012-06-28 19:16 +0530
csiph-web