7 lines
148 B
Python
7 lines
148 B
Python
|
|
class Config:
|
|
def __init__(self, filename):
|
|
if os.path.isfile(filename):
|
|
f = open(filename, 'r')
|
|
eval(f, self)
|