[caribou] set correct path when discovering keyboards



commit cfd256ea7641c544bb239284333da244d941e241
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Apr 6 14:06:04 2010 -0400

    set correct path when discovering keyboards

 src/caribou/keyboards/__init__.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/caribou/keyboards/__init__.py b/src/caribou/keyboards/__init__.py
index 7a83f59..2525a33 100644
--- a/src/caribou/keyboards/__init__.py
+++ b/src/caribou/keyboards/__init__.py
@@ -20,8 +20,7 @@
 
 import os
 
-# TODO: will need to be changed when build / install logic is sorted out
-files = os.listdir('caribou/keyboards')
+files = os.listdir(os.path.dirname(__file__))
 
 kbds = []
 for f in files:
@@ -29,4 +28,4 @@ for f in files:
         module = f.rsplit('.', 1)[0]
         # TODO: verify keyboard before adding it to the list
         kbds.append(module)
-del os, files, f, module
\ No newline at end of file
+del os, files, f, module



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]