blob: d50d4d7d26d3a7dc128a0b93e5c491d582e65676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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")
config = AliasConfigParser()
|