I am using same process for multiple file download. So I need to download those one by one.
Moreover some files are very huge (around 120 MB). So I need to make script to wait before verifying the file is downloaded. Thanks AD On Thu, Sep 17, 2009 at 5:34 PM, Kent Johnson <ken...@tds.net> wrote: > On Thu, Sep 17, 2009 at 5:47 AM, Ansuman Dash <ansuman.d...@gmail.com> > wrote: > > Hi, > > > > I modified my code little bit and it is working fine now, > > > > ===================================================== > > if os.access("C:/Python25/Own.log", os.F_OK): > > f = open("C:/Python25/Own.log") > > time.sleep(30) > > ======================================================= > > > > But I have question to ask, as you can see I am using "time.sleep(30)" to > > make my code wait. Is there any other way I can write my script to > resolve > > synchronization issues. > > How is the log being created? Are you waiting for another process to > finish? You can use the subprocess module to start another process and > then wait for the process to complete. > > Kent >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor