<s> import os <EOL> try : <EOL> import ConfigParser <EOL> config = ConfigParser . ConfigParser ( ) <EOL> from ConfigParser import NoOptionError <EOL> except ImportError : <EOL> import configparser <EOL> config = configparser . ConfigParser ( ) <EOL> from configparser import NoOptionError <EOL> default_file = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' , '<STR_LIT>' ) ) <EOL> local_file = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' , '<STR_LIT>' ) ) <EOL> home = os . getenv ( '<STR_LIT>' ) or os . getenv ( '<STR_LIT>' ) <EOL> user_file = os . path . join ( home , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> config . readfp ( open ( default_file ) ) <EOL> config . read ( [ local_file , user_file ] ) <EOL> if not config : <EOL> raise ValueError ( "<STR_LIT>" + user_file + "<STR_LIT>" + local_file + "<STR_LIT>" + default_file + "<STR_LIT:.>" ) </s>
