2012-11-29 09:41:17 +01:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
2013-03-21 21:54:47 +01:00
|
|
|
baselinesPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/approvedResults.txt' )
|
|
|
|
filteredResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/unapprovedResults.txt' )
|
2012-11-29 09:41:17 +01:00
|
|
|
|
|
|
|
if os.path.isfile( filteredResultsPath ):
|
|
|
|
os.remove( baselinesPath )
|
|
|
|
os.rename( filteredResultsPath, baselinesPath )
|
|
|
|
else:
|
|
|
|
print "approval file " + filteredResultsPath + " does not exist"
|