Backing up the results files before fucking with them
authorSam Moore <[email protected]>
Sat, 28 Apr 2012 15:04:07 +0000 (23:04 +0800)
committerSam Moore <[email protected]>
Sat, 28 Apr 2012 15:04:07 +0000 (23:04 +0800)
Could be a good idea

basic_python will be removed from rounds 2 and 3

judge/simulator/simulate.py

index 7664a2c..a7a138d 100755 (executable)
@@ -152,6 +152,9 @@ if verbose:
 if verbose:
        print "Preparing .html results files..."
 
 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
 
 if os.path.exists(resultsDirectory + "index.html") == True:
        os.remove(resultsDirectory + "index.html") #Delete the file

UCC git Repository :: git.ucc.asn.au