Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24606
| From | Christian Heimes <lists@cheimes.de> |
|---|---|
| Subject | Re: how can I implement "cd" like shell in Python? |
| Date | 2012-06-28 13:35 +0200 |
| References | <87pq8jsnfp.fsf@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1597.1340883352.4697.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how can I implement "cd" like shell in Python? Sergi Pasoev <s.pasoev@gmail.com> - 2012-06-28 15:09 +0400 Re: how can I implement "cd" like shell in Python? Hans Mulder <hansmu@xs4all.nl> - 2012-06-28 13:33 +0200 Re: how can I implement "cd" like shell in Python? Christian Heimes <lists@cheimes.de> - 2012-06-28 13:35 +0200 Re: how can I implement "cd" like shell in Python? Laurent Pointal <laurent.pointal@free.fr> - 2012-06-28 19:13 +0200
csiph-web