<s> import os <EOL> import ConfigParser <EOL> from utils import auxiliary_utils <EOL> DEFAULT_CONFIG = { <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT:True>" <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } , <EOL> } <EOL> class BBoxConfig : <EOL> def __init__ ( self , pathToConfigFile = "<STR_LIT>" ) : <EOL> self . config = ConfigParser . ConfigParser ( ) <EOL> read_files = self . config . read ( pathToConfigFile ) <EOL> self . isRealFile = False <EOL> if read_files : <EOL> self . isRealFile = True <EOL> def getDecompiledApkRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getCoverageMetadataRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getCoverageMetadataFilename ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getReportsRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getRuntimeReportsRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getInstrumentedFilesRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getTmpJarRelativeDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getInstrFileSuffix ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getFinalInstrFileSuffix ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getSignedFileSuffix ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getAlignedFileSuffix ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getAaptDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getAaptExecutable ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getAaptPath ( self ) : <EOL> return os . path . join ( self . getAaptDir ( ) , self . getAaptExecutable ( ) ) <EOL> def getApktoolJavaPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getApktoolJavaOpts ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getApktoolPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getApktoolJar ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getQuiteOptionValue ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDex2JarJavaPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDex2JarJavaOpts ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDex2LibsPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDex2JarClassForDex2Jar ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDex2JarClassForApksign ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDxJavaPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDxJavaOpts ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDxPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getDxJar ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaJavaPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaJavaOpts ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaJar ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaDeviceJar ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getEmmaResourcesDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getAndroidSpecificInstrumentationClassesPath ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getZipalignDir ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def getZipalingExe ( self ) : <EOL> section = "<STR_LIT>" <EOL> option = "<STR_LIT>" <EOL> return self . _getOption ( section , option ) <EOL> def _getOption ( self , section , option ) : <EOL> value = self . _getOptionFromConfigFile ( section , option ) <EOL> if not value : <EOL> value = DEFAULT_CONFIG [ section ] [ option ] <EOL> return value <EOL> def _getOptionFromConfigFile ( self , section , option ) : <EOL> value = None <EOL> if self . isRealFile : <EOL> try : <EOL> value = self . config . get ( section , option ) <EOL> except : <EOL> value = None <EOL> return value </s>
