From: Sam Moore Date: Sat, 28 Apr 2012 15:04:07 +0000 (+0800) Subject: Backing up the results files before fucking with them X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b1c6f5bee1c544be8b04d16d1bce9a66688df0c3;p=progcomp2012.git Backing up the results files before fucking with them Could be a good idea basic_python will be removed from rounds 2 and 3 --- 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