Refactored scripts to start using a common file

This commit is contained in:
Phil Nash 2013-04-24 18:58:57 +01:00
parent 1309da2b55
commit 2278451cd2
4 changed files with 20 additions and 11 deletions

View file

@ -2,9 +2,10 @@ 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' )
from scriptCommon import catchPath
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 )