| branch | devel |
| changeset 147 | e96e50ae6352 |
| child 179 | af65fcbd59d5 |
| 146:8cae6cfc1de4 | 147:e96e50ae6352 |
|---|---|
1 from ConfigParser import ConfigParser |
|
2 |
|
3 class Config(ConfigParser): |
|
4 def __init__(self): |
|
5 ConfigParser.__init__(self) |
|
6 self.reloadList=[] |
|
7 |
|
8 def reload(self): |
|
9 for f in self.reloadlist: |
|
10 f() |
|
11 |
|
12 def registerReload(self, func): |
|
13 self.reloadList.append(func) |
|
14 |
|
15 config=Config() |