diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2015-01-03 19:24:07 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-01-07 08:48:19 -0600 |
commit | f92c29ae448a24c79da19c4579a393f7eb7ad233 (patch) | |
tree | 234125d7e8c328d61f53d5c59f4a69b85de270c4 | |
parent | 057d641dcf0a2b480156438cbe04c559bbfb74d7 (diff) |
Changed hardcode in i18n.py
-rw-r--r-- | pebble/libpebble/i18n.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |