1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* New config object doesn't read configuration - fixed.

* Added PIL field in config.
This commit is contained in:
2006-11-30 11:35:40 +00:00
parent 9feef2fb70
commit dffd5f0387

View File

@@ -38,7 +38,8 @@ class Config:
'v' : 300, 'v' : 300,
'exportxls' : False, 'exportxls' : False,
'cd' : '/cdrom', 'cd' : '/cdrom',
'eject' : 'eject -r' 'eject' : 'eject -r',
'pil': False,
} }
dictconf = { dictconf = {
@@ -49,9 +50,10 @@ class Config:
"export xls":"exportxls", "export xls":"exportxls",
"cd drive":"cd", "cd drive":"cd",
"eject command":"eject", "eject command":"eject",
"image support":"pil",
} }
dbool = ('exportxls') dbool = ('exportxls','pil')
dstring = ('cd','eject') dstring = ('cd','eject')
try: try:
@@ -60,7 +62,7 @@ class Config:
path = "/tmp" path = "/tmp"
def __init__(self): def __init__(self):
self.load() pass
def save(self): def save(self):
try: try: