Gavin Lusby wrote:
>     ############################ write outfile ############################
>         o=open(os.getcwd()+g.dsep+file, 'w')
>         if g.verbose:
>             print '...writing to '+os.getcwd()+g.dsep+file
>         o.write('%over = (njobs => '+str(answer)+');\n')
>         o.close
>     ############################### sleep now #############################
>         sleep(refresh)

Try o.close() ;)

Christian

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to