Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Windows subprocess.call problem (http://www.velocityreviews.com/forums/t956773-re-windows-subprocess-call-problem.html)

Terry Reedy 01-21-2013 11:38 PM

Re: Windows subprocess.call problem
 
On 1/21/2013 6:22 PM, Tom Borkin wrote:
> nobody@nowhere.com <mailto:nobody@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 <d@davea.name
> <mailto: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.




--
Terry Jan Reedy



All times are GMT. The time now is 11:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.