Re: File.write() not working in a sleepy loop
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
File.write() not working in a sleepy loop
Hello, I am getting odd behaviour when I am trying to write a file in a while loop with a sleep function call. I am trying to periodically change the number of jobs on a cluster depending on the current usage and a dummy version that does not require access to the cluster usage is attached at the