pygo/lib/config.py

12 lines
187 B
Python

import ConfigParser
def init():
global config
config = read_config_file()
def read_config_file():
ret = ConfigParser.ConfigParser()
ret.read('pygo.cfg')
return ret