2012-11-29 03:41:17 -05:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import shutil
|
|
|
|
|
2013-04-24 13:58:57 -04:00
|
|
|
from scriptCommon import catchPath
|
|
|
|
|
|
|
|
baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/approvedResults.txt' )
|
|
|
|
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/unapprovedResults.txt' )
|
2012-11-29 03:41:17 -05:00
|
|
|
|
|
|
|
if os.path.isfile( filteredResultsPath ):
|
|
|
|
os.remove( baselinesPath )
|
|
|
|
os.rename( filteredResultsPath, baselinesPath )
|
|
|
|
else:
|
|
|
|
print "approval file " + filteredResultsPath + " does not exist"
|