blob: e856beb1069e0c93486dfcf146fdf0d65fe4e478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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)
|