changeset 49 | 08e4dfe1b0cb |
parent 37 | 5b0eb4b11940 |
48:b82c7c2fb5af | 49:08e4dfe1b0cb |
---|---|
1 import sys |
|
2 |
|
3 sys.path.insert(0, '..') |
|
4 |
|
5 |
|
6 class Config(dict): |
1 class Config(dict): |
7 def __init__(self, fname): |
2 def __init__(self, fname): |
8 with open(fname) as f: |
3 with open(fname) as f: |
9 data = f.read() |
4 data = f.read() |
10 exec(data, dict(), self) |
5 exec(data, dict(), self) |