X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=skin.py;h=58426c0f18f052332f78b1da24a7318bcde92ba6;hb=64a629d1dd12dbe16b6d8a74a2f2dc3425fef138;hp=c6d0678a142691d0419e9d3467389964458aa161;hpb=549ed3c87c4d3fe093472aa199ca6742c1f3654f;p=vuplus_dvbapp diff --git a/skin.py b/skin.py index c6d0678..58426c0 100644 --- a/skin.py +++ b/skin.py @@ -14,13 +14,10 @@ def dump(x, i=0): except: None +from Tools.Directories import resolveFilename, SCOPE_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()