Locale directory not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CLI Companion |
Fix Released
|
High
|
David Caro |
Bug Description
When executing clicompanion it tries to locate the locale bin, but it fails to do so because it uses the source folder or the same dir as the clicompanion binary is placed, instead of using the PATH environment variable.
11 if (os.path.exists ('/usr/
12 BASEDIR = '/usr/share/
13 print "using locale in system"
14 else:
15 BASEDIR = os.path.
16 print "using locale in source code folder"
I set it high because it will not start
$ clicompanion
using locale in source code folder
Traceback (most recent call last):
File "/usr/local/
idioma = get_language()
File "/usr/local/
traducidos = os.listdir(
OSError: [Errno 2] No existe el archivo o el directorio: '/usr/local/
$ which locale
/usr/bin/locale
Related branches
- Marek Bardoński: Approve
-
Diff: 30 lines (+14/-5)1 file modifiedclicompanion (+14/-5)
summary: |
- Locale binary not found + Locale directory not found |
description: | updated |
description: | updated |
description: | updated |
Changed in clicompanion: | |
assignee: | nobody → David Caro (dcaro) |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
Sorry, it looks for the locales folder, not the binary,.
The problem is that it is installed in /usr/local/ share/clicompan ion instead of /usr/share/ clicompanion, so it does not find the sources folder nor the system locales folder.
I propose two things:
- Looking for the correct installed directory
- Showing a nicer and clearer message when not finding the locales folder
David