Re: os.system function

2010-01-13 Thread r0g
Lie Ryan wrote: > On 01/13/10 04:59, r0g wrote: >> so you may want to look into pythons core GUI library, TKL. > > I know Tk and Tcl has been close since their childhood; did they get > married too? Whoops... yes Tk/Tcl, it seems they had become one in my head only! :) Roger. -- http://mail.py

Re: os.system function

2010-01-13 Thread Lie Ryan
On 01/13/10 04:59, r0g wrote: > so you may want to look into pythons core GUI library, TKL. I know Tk and Tcl has been close since their childhood; did they get married too? -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system function

2010-01-12 Thread r0g
Zabin wrote: > Hey everyone! > > I am a new python programmer. I am trying to get the general file > functionality with options of save and save as working. These save > functions save a folder with multiple files. Upon using the os.system > copy function- if my destination directory has files wit

Re: os.system function

2010-01-12 Thread Jeremy Sanders
Zabin wrote: > Thanks for the pointersi had a look around and found the site: > http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en- us/xcopy.mspx?mfr=true > > to disable the prompt- i needed to include /y as below: > os.system ('xcopy /s %s %s /y ' % (dirExe, dirnam

Re: os.system function

2010-01-11 Thread Zabin
On Jan 12, 11:31 am, Jeremy Sanders wrote: > Zabin wrote: > > Thanks for the pointersi had a look around and found the site: > > http://www.microsoft.com/resources/documentation/windows/xp/all/prodd... > us/xcopy.mspx?mfr=true > > > > > to disable the prompt- i needed to include /y as below: >

Re: os.system function

2010-01-11 Thread Chris Rebert
On Mon, Jan 11, 2010 at 2:00 PM, Zabin wrote: > and just wondering- whats the drawback of using os.system() command Forgetting to properly escape your input. Simple example: filename = "foo bar.txt" os.system("rm "+filename) # uh-oh, we deleted 'foo' and 'bar.txt' instead The `subprocess` modu

Re: os.system function

2010-01-11 Thread Zabin
On Jan 12, 10:23 am, Chris Rebert wrote: > On Mon, Jan 11, 2010 at 12:43 PM, Zabin wrote: > > Hey everyone! > > > I am a new python programmer. I am trying to get the general file > > functionality with options of save and save as working. These save > > functions save a folder with multiple file

Re: os.system function

2010-01-11 Thread Chris Rebert
On Mon, Jan 11, 2010 at 12:43 PM, Zabin wrote: > Hey everyone! > > I am a new python programmer. I am trying to get the general file > functionality with options of save and save as working. These save > functions save a folder with multiple files. Upon using the os.system > copy function- if my d

Re: os.system function

2010-01-11 Thread Olof Bjarnason
2010/1/11 Zabin : > Hey everyone! > > I am a new python programmer. I am trying to get the general file > functionality with options of save and save as working. These save > functions save a folder with multiple files. Upon using the os.system > copy function- if my destination directory has files

os.system function

2010-01-11 Thread Zabin
Hey everyone! I am a new python programmer. I am trying to get the general file functionality with options of save and save as working. These save functions save a folder with multiple files. Upon using the os.system copy function- if my destination directory has files with similar names- i am ask