os.system()

Chris Angelico rosuav at gmail.com
Fri Apr 20 06:58:23 EDT 2012


On Fri, Apr 20, 2012 at 8:51 PM, Yigit Turgut <y.turgut at gmail.com> wrote:
> On Apr 19, 11:02 pm, "Steve" <n... at spam.com> wrote:
>> > "Yigit Turgut"  wrote in message
>> >news:b9a8bb28-3003-4a36-86fb-339ef697b52f at i2g2000vbd.googlegroups.com...
>> > When I use os.system() function, script waits for termination of the
>>
>> windows that is opened by os.system() to continue thus throwing errors
>> and etc. How can i tell Python to let it go and keep on with the next
>> execution after os.system() ?
>>
>> Can you make use of subprocess.Popen() ?
>
> Still waits for the new windows to kill.

Check the docs for subprocess, you can choose whether or not you wait for it.

ChrisA



More information about the Python-list mailing list