diff options
author | chai <chaifix@163.com> | 2018-01-24 20:04:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-01-24 20:04:34 +0800 |
commit | 6562ad5da1548247e50c2b592332c9f56afda072 (patch) | |
tree | 9b8adbf557d0d7126ca16aee29d1c603e1705e14 /cgi-bin/config.py | |
parent | 131cf12827e64f527da69251b6a6221d130c1cc7 (diff) |
*修改
Diffstat (limited to 'cgi-bin/config.py')
-rw-r--r-- | cgi-bin/config.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cgi-bin/config.py b/cgi-bin/config.py new file mode 100644 index 0000000..e856beb --- /dev/null +++ b/cgi-bin/config.py @@ -0,0 +1,12 @@ +# parse conf.ini +# -*- coding: utf-8 -*- +import configparser, codecs, sys + +conf = configparser.ConfigParser() +conf.read("conf.ini") + +class Config(object): + @classmethod + def get(cls, section, option): + return conf.get(section, option) + |