diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-11 16:01:01 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-11 16:01:01 +0000 |
| commit | f1ab9e53dff461945393a1a8a06fd927db0610fd (patch) | |
| tree | eff50b68d7177ed81727c07ada3ca5f2744bcf0d /skin.py | |
| parent | 6c1d9c8654f84bbf229a1900d540c7fcf9d605b4 (diff) | |
| download | enigma2-f1ab9e53dff461945393a1a8a06fd927db0610fd.tar.gz enigma2-f1ab9e53dff461945393a1a8a06fd927db0610fd.zip | |
use Tools.Directories to get paths
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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() |
