Re: Change directory not successfully done

2005-11-11 Thread Bengt Richter
On Fri, 11 Nov 2005 10:16:02 +0800, Samuel Yin <[EMAIL PROTECTED]> wrote: >Hi, guys, > >This should be a simple problem, but I just can not resolve it. I just >want to use a python script to change my working directory. see my >following code: > ># mycd.py >1) destdir = "" >2) command = "c

Re: Change directory not successfully done

2005-11-10 Thread Samuel Yin
Thanks for your answer. I know why the why os.system or os.chdir failed change my directory. But Sorry for my un-clear description of my problem. Currently I work in window platform, use cmd.exe instead of bash. I mentioned bash just as a example to illustrate my problem.     Thanks and Reg

Re: Change directory not successfully done

2005-11-10 Thread Mike Meyer
Samuel Yin <[EMAIL PROTECTED]> writes: > Hi, guys, > > This should be a simple problem, but I just can not resolve it. I just > want to use a python script to change my working directory. see my > following code: > > # mycd.py > 1) destdir = "" > 2) command = "cd "+ destdir > 3) os.system(c