Setup file with incorrect locale install path

Bug #802298 reported by David Caro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CLI Companion
Fix Released
Medium
Unassigned

Bug Description

When installing from source (bzr branch lp:clicompanion) and executing setup.py install, you end up with am installed script that complains about not finding the /usr/local/bin/locale folder:

using locale in source code folder
Traceback (most recent call last):
  File "/usr/local/bin/clicompanion", line 45, in <module>
    idioma = get_language()
  File "/usr/local/bin/clicompanion", line 37, in get_language
    traducidos = os.listdir(locale_dir)
OSError: [Errno 2] No existe el fichero o el directorio: '/usr/local/bin/locale'

I just glimpsed the code and figured out that the locales where not installed at the correct folder and the app was trying to get the locales from the source folder (and was unable to find them because it was looking to the same folder where the binary is installed ,/usr/local/bin instead of looking in the correct one).

Submitted a patch, only 5 chars added XD.

Related branches

Revision history for this message
David Caro (dcaro) wrote :
David Caro (dcaro)
summary: - Setup file with incorerct locale install path
+ Setup file with incorrect locale install path
description: updated
Revision history for this message
Marek Bardoński (bdfhjk) wrote :

Patch solving problem.

I recommend merge to trunk.

Thanks!

Changed in clicompanion:
status: New → Fix Committed
importance: Undecided → Medium
David Caro (dcaro)
Changed in clicompanion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.