diff options
author | chai <chaifix@163.com> | 2018-01-31 18:27:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-31 18:27:58 +0800 |
commit | c1803a7603135e2c148d89d5e05596f5d251842a (patch) | |
tree | b5bc28928a317d348953eee24a0af58b603040b9 /cgi-bin/config.py | |
parent | dc23aa78f0cf671eac2c18ee54b23e62848fac28 (diff) |
修改
Diffstat (limited to 'cgi-bin/config.py')
-rw-r--r-- | cgi-bin/config.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cgi-bin/config.py b/cgi-bin/config.py new file mode 100644 index 0000000..f9ee2f6 --- /dev/null +++ b/cgi-bin/config.py @@ -0,0 +1,13 @@ +# parse config.ini +# -*- 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) + + |