Re: Windows subprocess.call problem

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 12:04 AM, Dave Angel wrote: > Why not just pass all the filenames as parameters in one invocation of > notepad? Assuming Notepad is written reasonably, that'll give it all to you > in one window, instead of opening many separate ones. The OP is talking about Windows Notep

Re: Windows subprocess.call problem

2013-01-21 Thread Terry Reedy
On 1/21/2013 6:22 PM, Tom Borkin wrote: nob...@nowhere.com had an excellent suggestion that worked right off the bat and achieved exactly what I was after. Thanks all! And what was it? On Mon, Jan 21, 2013 at 9:04 AM, Dave Angel mailto:d...@davea.name>> wrote:

Re: Windows subprocess.call problem

2013-01-21 Thread Tom Borkin
nob...@nowhere.com had an excellent suggestion that worked right off the bat and achieved exactly what I was after. Thanks all! Tom On Mon, Jan 21, 2013 at 9:04 AM, Dave Angel wrote: > On 01/21/2013 06:25 AM, Tom Borkin wrote: > >> Hi; >> I have this code: >> >> >> for song in my_songs: >>

Re: Windows subprocess.call problem

2013-01-21 Thread Dave Angel
On 01/21/2013 06:25 AM, Tom Borkin wrote: Hi; I have this code: for song in my_songs: subprocess.call(['notepad.exe', '%s.txt' % song]) print song It opens the first song and hangs on subsequent songs. It doesn't open the next song or execute the print until I have closed the first one. I

Re: Windows subprocess.call problem

2013-01-21 Thread Nobody
On Mon, 21 Jan 2013 07:25:06 -0400, Tom Borkin wrote: > It opens the first song and hangs on subsequent songs. It doesn't open the > next song or execute the print until I have closed the first one. I want it > to open all in the list, one after another, so I have all those songs > available. Plea

Re: Windows subprocess.call problem

2013-01-21 Thread Tim Golden
On 21/01/2013 11:25, Tom Borkin wrote: > Hi; > I have this code: > > #!/Python27/python > import os, subprocess, sys > lyrics_path = "/Users/Tom/Documents/lyrics" > os.chdir(lyrics_path) > > songs = ['livin-la-vida-loca', 'whos-that-lady'] > for song in songs: > subprocess.call(['notepad.exe'

Windows subprocess.call problem

2013-01-21 Thread Tom Borkin
Hi; I have this code: #!/Python27/python import os, subprocess, sys lyrics_path = "/Users/Tom/Documents/lyrics" os.chdir(lyrics_path) songs = ['livin-la-vida-loca', 'whos-that-lady'] for song in songs: subprocess.call(['notepad.exe', '%s.txt' % song]) my_songs_path = "aa english lyrics" os.chdi