Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37231 > unrolled thread

Re: Windows subprocess.call problem

Started byTom Borkin <borkintom@gmail.com>
First post2013-01-21 19:22 -0400
Last post2013-01-21 19:22 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Windows subprocess.call problem Tom Borkin <borkintom@gmail.com> - 2013-01-21 19:22 -0400

#37231 — Re: Windows subprocess.call problem

FromTom Borkin <borkintom@gmail.com>
Date2013-01-21 19:22 -0400
SubjectRe: Windows subprocess.call problem
Message-ID<mailman.768.1358810538.2939.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

nobody@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 <d@davea.name> wrote:

> On 01/21/2013 06:25 AM, Tom Borkin wrote:
>
>> Hi;
>> I have this code:
>> <snip>
>>
>> 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 want
>> it
>> to open all in the list, one after another, so I have all those songs
>> available. Please advise.
>>
>
> 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.
>
>
> --
> DaveA
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web