Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24672 > unrolled thread
| Started by | Chris Withers <chris@python.org> |
|---|---|
| First post | 2012-06-29 18:48 +0100 |
| Last post | 2012-06-29 18:48 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: 转发:Re:how can I implement "cd" like shell in Python? Chris Withers <chris@python.org> - 2012-06-29 18:48 +0100
| From | Chris Withers <chris@python.org> |
|---|---|
| Date | 2012-06-29 18:48 +0100 |
| Subject | Re: 转发:Re:how can I implement "cd" like shell in Python? |
| Message-ID | <mailman.1639.1340993034.4697.python-list@python.org> |
On 28/06/2012 12:39, 梦幻草 wrote:
>
> thanks !But this method can not change the directory of the main
> process.For example:
> the current directory is "/home/work/local/scripts",this directory have
> a python script file "cd.py"
> after executing the script cd.py by "python cd.py ..",the current work
> directory has no changes,the path is still "/home/work/local/scripts"
Sounds like you might want to give the ipython shell a go, since it has
a lot of this already implemented.
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
Back to top | Article view | comp.lang.python
csiph-web