[caribou] Add data directory to const.py



commit 8d8acb87c10ec3868cc754f4a76ea6cbe16665ba
Author: David Pellicer <davidpellicermartin gmail com>
Date:   Mon Jul 19 11:46:17 2010 -0700

    Add data directory to const.py

 caribou/common/const.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/caribou/common/const.py b/caribou/common/const.py
index bb0aa7c..202bc16 100644
--- a/caribou/common/const.py
+++ b/caribou/common/const.py
@@ -23,18 +23,15 @@ from os.path import join
 from os.path import dirname
 
 import gtk
+from caribou import data_path
 
 # Application name
 APP_NAME = 'Caribou'
 APP_SLUG_NAME = 'caribou'
 
 # Paths
-DATA_DIR = join('/usr', 'share', '%s' % APP_SLUG_NAME)
-RESOURCES_DIR = join(DATA_DIR, 'resources')
-KEYBOARDS_DIR = join(RESOURCES_DIR, 'keyboards')
-CONFIG_DIR = join(RESOURCES_DIR, 'config')
-DATABASES_DIR = join(RESOURCES_DIR, 'databases')
-GLADE_UIS_DIR = join(RESOURCES_DIR, 'uis')
+DATA_DIR = data_path
+KEYBOARDS_DIR = join(DATA_DIR, 'keyboards')
 
 # Preferences
 CARIBOU_GCONF = join('/apps', 'caribou', 'osk')



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