added preference reader

This commit is contained in:
age 2004-08-06 20:45:56 +00:00
parent 1c58d8cc05
commit 858e85b5d3
2 changed files with 8 additions and 2 deletions

6
.FilmBar.conf Normal file
View file

@ -0,0 +1,6 @@
[Main]
gladefile = foo
htmlfilmlist = file:///home/age/divx.html
xmlfilmlistin = myfilms.xml
xmlfilmlistout = myfilms.xml

View file

@ -15,9 +15,9 @@ import sys, os
### Set the Preferences filename ### Set the Preferences filename
if sys.platform=="linux2" or sys.platform=="linux": if sys.platform=="linux2" or sys.platform=="linux":
PREFS_FILENAME = os.getenv("HOME") + "/.FilmBatzen.dat" PREFS_FILENAME = os.getenv("HOME") + "/.FilmBar.conf"
else: else:
PREFS_FILENAME="FilmBatzen.dat" PREFS_FILENAME="FilmBar.conf"
class Preferences: class Preferences: