summaryrefslogtreecommitdiff
path: root/chirpw
diff options
context:
space:
mode:
authorIain R. Learmonth <irl@fsfe.org>2017-07-16 00:34:18 +0100
committerIain R. Learmonth <irl@fsfe.org>2017-07-16 00:34:18 +0100
commit13e802fb673ce97dd3cca5b5af67fff0ccebd75e (patch)
treefe04937202b9c0b12f6fc7e98dc47ef74080106f /chirpw
parent84922147dd2ac531b95e7a52f1e9bcb2e2e397dc (diff)
New upstream version 20170714upstream/20170714
Diffstat (limited to 'chirpw')
-rwxr-xr-xchirpw5
1 files changed, 1 insertions, 4 deletions
diff --git a/chirpw b/chirpw
index 9199332..6ea9ba0 100755
--- a/chirpw
+++ b/chirpw
@@ -34,10 +34,7 @@ import logging
LOG = logging.getLogger("chirpw")
-execpath = platform.get_platform().executable_path()
-localepath = os.path.abspath(os.path.join(execpath, "locale"))
-if not os.path.exists(localepath):
- localepath = "/usr/share/chirp/locale"
+localepath = platform.get_platform().find_resource("locale")
conf = config.get()
manual_language = conf.get("language", "state")