<s> import ConfigParser . SafeConfigParser <EOL> from os . path import * <EOL> class WolkConfig : <EOL> possible_locations = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> def __init__ ( self ) : <EOL> self . config = SafeConfigParser ( ) <EOL> found = None <EOL> i = <NUM_LIT:0> <EOL> while i < len ( possible_locations ) and not found : <EOL> loc = possible_locations [ i ] <EOL> if isFile ( loc ) : <EOL> found = open ( loc ) <EOL> i += <NUM_LIT:1> <EOL> if found : <EOL> self . config . read ( found ) </s>
