command prompt change dir
Tim Roberts
timr at probo.com
Sun Jul 13 00:57:29 EDT 2003
"Peter Vestergaard" <posselt at hotmail.com> wrote:
>
>Probably a simple question but I have not been able to find out how:
>I want my python script to generate a path based on some simple lookups and
>then change my path so that when the script exits my command prompt (from
>which I launched the script) is standing at this path. The path already
>exists.
>I have tried chdir(path), system('cd '+path) and many others but none
>changes my actual path.
How many times do you need to do this? You can set the PATH environment
variable and spawn off a new copy of cmd.exe, which will inherit your
modified environment.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list