Re: os.popen command working differently on Windows

2011-05-13 Thread Hans Mulder
On 12/05/2011 16:21, Tim Golden wrote: On 12/05/2011 15:11, Ayaskanta Swain wrote: Please help me in solving the following issue I am facing while executing my python script. Basically I am executing the OS specific move command to move a file/dir from one location to another. Why? Why not use

Re: os.popen command working differently on Windows

2011-05-13 Thread Nobody
On Thu, 12 May 2011 15:21:41 +0100, Tim Golden wrote: > os.popen returns a file-like object from which you can read any error > messages generated. The documentation doesn't say, but if it's anything like the Unix popen() function, with mode='r' the returned file-like object will correspond to th

Re: os.popen command working differently on Windows

2011-05-12 Thread MRAB
On 12/05/2011 15:11, Ayaskanta Swain wrote: Hi All, Please help me in solving the following issue I am facing while executing my python script. Basically I am executing the OS specific move command to move a file/dir from one location to another. I am executing the ‘mv’ command on linux & the ‘m

Re: os.popen command working differently on Windows

2011-05-12 Thread Tim Golden
On 12/05/2011 15:11, Ayaskanta Swain wrote: Please help me in solving the following issue I am facing while executing my python script. Basically I am executing the OS specific move command to move a file/dir from one location to another. Why? Why not use os.rename or shutil.move which already