blob: 755477b4aecdca3cd470a02324fb94d07c88d684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import ConfigParser
filename = None
class AliasConfigParser(ConfigParser.RawConfigParser):
def read(self, filenames):
ConfigParser.RawConfigParser.read(self, filenames)
self.name = self.get("component", "name")
self.root = self.get("component", "root")
self.host = self.get("component", "host")
self.secret = self.get("component", "secret")
self.port = self.getint("component", "port")
self.background = self.getboolean("component", "background")
config = AliasConfigParser()
|