diff options
| author | chai <chaifix@163.com> | 2018-07-13 21:53:49 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2018-07-13 21:53:49 +0800 | 
| commit | 7ca80e57f06922e464626c7a6a1d7965e716b53f (patch) | |
| tree | bda9271234720424b7dfc5c2d25b9df4ba3d01df /config.py | |
| parent | 181b206863d3765fe5343ceea8e1e00e52ffba9e (diff) | |
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/config.py b/config.py new file mode 100644 index 0000000..539ed6c --- /dev/null +++ b/config.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +import configparser, codecs, sys + +conf = configparser.ConfigParser()  +conf.read("config.ini") + +class Config(object):  +    @classmethod +    def get(cls, section, option): +        return conf.get(section, option) | 
