command prompt change dir

Peter Vestergaard posselt at hotmail.com
Fri Jul 11 02:39:37 EDT 2003


Hi
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.
Hope anyone can help
Regards, Peter Vestergaard






More information about the Python-list mailing list