added preference reader
This commit is contained in:
parent
1c58d8cc05
commit
858e85b5d3
2 changed files with 8 additions and 2 deletions
6
.FilmBar.conf
Normal file
6
.FilmBar.conf
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Main]
|
||||||
|
gladefile = foo
|
||||||
|
htmlfilmlist = file:///home/age/divx.html
|
||||||
|
xmlfilmlistin = myfilms.xml
|
||||||
|
xmlfilmlistout = myfilms.xml
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue