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,
|
'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:
|
||||||
|
|||||||
Reference in New Issue
Block a user