Moved scripts into their own folder

This commit is contained in:
Phil Nash 2013-03-21 20:54:47 +00:00
parent f155366cf2
commit f4254b8622
3 changed files with 8 additions and 8 deletions

13
scripts/approve.py Normal file
View file

@ -0,0 +1,13 @@
import os
import sys
import shutil
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
baselinesPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/approvedResults.txt' )
filteredResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/unapprovedResults.txt' )
if os.path.isfile( filteredResultsPath ):
os.remove( baselinesPath )
os.rename( filteredResultsPath, baselinesPath )
else:
print "approval file " + filteredResultsPath + " does not exist"