From f92c29ae448a24c79da19c4579a393f7eb7ad233 Mon Sep 17 00:00:00 2001 From: Gulsah Kose Date: Sat, 3 Jan 2015 19:24:07 +0200 Subject: Changed hardcode in i18n.py --- pebble/libpebble/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pebble/libpebble/i18n.py b/pebble/libpebble/i18n.py index 7e36642..0fc1c3c 100644 --- a/pebble/libpebble/i18n.py +++ b/pebble/libpebble/i18n.py @@ -10,7 +10,7 @@ import gettext APP_NAME = "pebble-remote" # This is ok for maemo. Not sure in a regular desktop: -APP_DIR = os.path.join(sys.prefix, '/home/gulsah/proje/pebble-remote/') #!!!This path works for me. You have to write your project path here.!!! +APP_DIR = os.path.dirname(os.path.abspath("pebble-remote")) #APP_DIR returns pebble-rmeote project path on your system LOCALE_DIR = os.path.join(APP_DIR, 'i18n') # .mo files will then be located in APP_Dir/i18n/LANGUAGECODE/LC_MESSAGES/ # Now we need to choose the language. We will provide a list, and gettext -- cgit v1.2.3