<s> import sys <EOL> import logging <EOL> from pipeline import Pipeline <EOL> class ConfigException ( Exception ) : <EOL> pass <EOL> class PyConfigLoader ( object ) : <EOL> def __init__ ( self , path ) : <EOL> self . logger = logging . getLogger ( '<STR_LIT>' ) <EOL> self . path = path <EOL> def configure ( self ) : <EOL> self . logger . info ( '<STR_LIT>' % self . path ) <EOL> self . pipeline = Pipeline ( ) <EOL> with self . pipeline : <EOL> try : <EOL> execfile ( self . path ) <EOL> except Exception as ex : <EOL> trace = sys . exc_info ( ) [ <NUM_LIT:2> ] <EOL> raise ConfigException ( ex ) , None , trace <EOL> self . pipeline . setup ( None ) </s>
