X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5b9623240f6e04e7b6946a0a03a9805b8ea8e5b5..878c28f3ac56f6dce9647993278e36cacb994bcc:/skin.py diff --git a/skin.py b/skin.py index bf8de72a..fa5f6fb5 100644 --- a/skin.py +++ b/skin.py @@ -16,11 +16,14 @@ def dump(x, i=0): # read the skin try: - skinfile = file('/usr/share/enigma2/skin.xml', 'r') - dom = xml.dom.minidom.parseString(skinfile.read()) - skinfile.close() + # first we search in the current path + skinfile = file('data/skin.xml', 'r') except: - print "Error opening skin.xml" + # if not found in the current path, we use the global datadir-path + skinfile = file('/usr/share/enigma2/skin.xml', 'r') +dom = xml.dom.minidom.parseString(skinfile.read()) +skinfile.close() + def parsePosition(str): x, y = str.split(',') @@ -233,5 +236,4 @@ def readSkin(screen, skin, name, desktop): # applyAttributes(guiObject, widget, desktop) # guiObject.thisown = 0 - print screen.additionalWidgets screen.additionalWidgets.append(w)