Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24672 > unrolled thread

Re: 转发:Re:how can I implement "cd" like shell in Python?

Started byChris Withers <chris@python.org>
First post2012-06-29 18:48 +0100
Last post2012-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.


Contents

  Re: 转发:Re:how can I implement "cd" like shell in Python? Chris Withers <chris@python.org> - 2012-06-29 18:48 +0100

#24672 — Re: 转发:Re:how can I implement "cd" like shell in Python?

FromChris Withers <chris@python.org>
Date2012-06-29 18:48 +0100
SubjectRe: 转发: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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web