pygo/lib/config.py

12 lines
187 B
Python
Raw Permalink Normal View History

2012-04-16 17:00:56 +00:00
import ConfigParser
def init():
global config
config = read_config_file()
def read_config_file():
ret = ConfigParser.ConfigParser()
ret.read('pygo.cfg')
return ret