mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 11:30:19 +01:00
* New config object doesn't read configuration - fixed.
* Added PIL field in config.
This commit is contained in:
@@ -38,7 +38,8 @@ class Config:
|
||||
'v' : 300,
|
||||
'exportxls' : False,
|
||||
'cd' : '/cdrom',
|
||||
'eject' : 'eject -r'
|
||||
'eject' : 'eject -r',
|
||||
'pil': False,
|
||||
}
|
||||
|
||||
dictconf = {
|
||||
@@ -49,9 +50,10 @@ class Config:
|
||||
"export xls":"exportxls",
|
||||
"cd drive":"cd",
|
||||
"eject command":"eject",
|
||||
"image support":"pil",
|
||||
}
|
||||
|
||||
dbool = ('exportxls')
|
||||
dbool = ('exportxls','pil')
|
||||
dstring = ('cd','eject')
|
||||
|
||||
try:
|
||||
@@ -60,7 +62,7 @@ class Config:
|
||||
path = "/tmp"
|
||||
|
||||
def __init__(self):
|
||||
self.load()
|
||||
pass
|
||||
|
||||
def save(self):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user