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


Groups > comp.lang.python > #24672

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

Date 2012-06-29 18:48 +0100
From Chris Withers <chris@python.org>
Subject Re: 转发:Re:how can I implement "cd" like shell in Python?
References <tencent_526114E462191AC5756F73D5@qq.com>
Newsgroups comp.lang.python
Message-ID <mailman.1639.1340993034.4697.python-list@python.org> (permalink)

Show all headers | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web