os.system()

Jacob MacDonald jaccarmac at gmail.com
Thu Apr 19 14:56:49 EDT 2012


On Thursday, April 19, 2012 11:09:22 AM UTC-7, Yigit Turgut wrote:
> 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() ?

You have to use threads. As in most programming languages (I believe), the program waits for a line to finish before moving on. So you'll have to create a new thread to deal with the windows, then move on to other stuff. Read the docs on the threading modules.



More information about the Python-list mailing list