From b1c6f5bee1c544be8b04d16d1bce9a66688df0c3 Mon Sep 17 00:00:00 2001
From: Sam Moore <matches@ucc.asn.au>
Date: Sat, 28 Apr 2012 23:04:07 +0800
Subject: [PATCH] Backing up the results files before fucking with them

Could be a good idea

basic_python will be removed from rounds 2 and 3
---
 judge/simulator/simulate.py | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
GitLab