diff options
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) + + |