projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[vuplus_dvbapp]
/
skin.py
diff --git
a/skin.py
b/skin.py
index
c6d0678
..
58426c0
100644
(file)
--- a/
skin.py
+++ b/
skin.py
@@
-14,13
+14,10
@@
def dump(x, i=0):
except:
None
except:
None
+from Tools.Directories import resolveFilename, SCOPE_SKIN
+
# read the skin
# read the skin
-try:
- # first we search in the current path
- skinfile = file('data/skin.xml', 'r')
-except:
- # if not found in the current path, we use the global datadir-path
- skinfile = file('/usr/share/enigma2/skin.xml', 'r')
+skinfile = file(resolveFilename(SCOPE_SKIN, 'skin.xml'), 'r')
dom = xml.dom.minidom.parseString(skinfile.read())
skinfile.close()
dom = xml.dom.minidom.parseString(skinfile.read())
skinfile.close()