Possible Duplicate:
How can I run an external command asynchronously from Python?
So far my bit of code WILL download the file and then play it. What I would like to do is start downloading the file and after say 30 sec's start to watch the download.
This is the code:
urllib.urlretrieve(url2, "/hdd/movie/movie"))
sleep(30)
self.session.open(MoviePlayer, sref)
from looking about i thought this might work;
os.spawnl(os.P_NOWAIT, urllib.urlretrieve(url2, "/hdd/movie/movie"))
sleep(30)
self.session.open(MoviePlayer, sref)
but this does exactly the same and completes the download before playing