X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fsimulator%2Fsimulate.py;h=a7a138d2059b3f0c7d74b10fc305e65c4f686b82;hp=7664a2ccf3a7690686dd9227b1c5ec4b2452a435;hb=b1c6f5bee1c544be8b04d16d1bce9a66688df0c3;hpb=3692d6226e327959976843713b678e52a1302c29 diff --git a/judge/simulator/simulate.py b/judge/simulator/simulate.py index 7664a2c..a7a138d 100755 --- a/judge/simulator/simulate.py +++ b/judge/simulator/simulate.py @@ -152,6 +152,9 @@ if verbose: if verbose: print "Preparing .html results files..." +#BACKUP THE RESULTS DIRECTORY GOD DAMMIT +os.system("mkdir .before_round"+str(totalRounds)+"_BACKUP/; cp " + resultsDirectory+"*" + " .before_round"+str(totalRounds)+"_BACKUP/") + if os.path.exists(resultsDirectory + "index.html") == True: os.remove(resultsDirectory + "index.html") #Delete the file