diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2010-11-17 17:20:04 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2010-11-17 17:20:04 +0100 |
| commit | 2b49c99dcd77e5c65d9563b38ed25e3153144818 (patch) | |
| tree | 5cefbc8c84b91fbeef21e6b86c42c0e70f3fc121 /lib/python/Components/Keyboard.py | |
| parent | a369ff24e35fce27bfc9fccf7b284b03533bb4c3 (diff) | |
| parent | a8682faafcab6004621a4848d7855c70b55f0bce (diff) | |
| download | enigma2-2b49c99dcd77e5c65d9563b38ed25e3153144818.tar.gz enigma2-2b49c99dcd77e5c65d9563b38ed25e3153144818.zip | |
Merge branch 'obi/master' into experimental
Diffstat (limited to 'lib/python/Components/Keyboard.py')
| -rwxr-xr-x | lib/python/Components/Keyboard.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Components/Keyboard.py b/lib/python/Components/Keyboard.py index 820d1036..b026cd56 100755 --- a/lib/python/Components/Keyboard.py +++ b/lib/python/Components/Keyboard.py @@ -1,6 +1,7 @@ from Components.Console import Console from os import listdir as os_listdir, path as os_path from re import compile as re_compile +from enigma import eEnv class Keyboard: def __init__(self): @@ -8,9 +9,9 @@ class Keyboard: self.readKeyboardMapFiles() def readKeyboardMapFiles(self): - for keymapfile in os_listdir('/usr/share/keymaps/'): + for keymapfile in os_listdir(eEnv.resolve('${datadir}/keymaps/')): if (keymapfile.endswith(".info")): - f = open('/usr/share/keymaps/' + keymapfile) + f = open(eEnv.resolve('${datadir}/keymaps/') + keymapfile) mapfile = None mapname = None for line in f: @@ -32,7 +33,7 @@ class Keyboard: try: keymap = self.keyboardmaps[index] print "Activating keymap:",keymap[1] - keymappath = '/usr/share/keymaps/' + keymap[0] + keymappath = eEnv.resolve('${datadir}/keymaps/') + keymap[0] if os_path.exists(keymappath): Console().ePopen(("loadkmap < " + str(keymappath))) except: |
