Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Correction found by mimosa on 64 bits system.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille Pontvieux committed Feb 17, 2013
1 parent 5f3e5b6 commit 00e6c4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/salix_livetools_library/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def listAvailableLocales(mountPoint = None):
if mountPoint == None:
mountPoint = ''
locales = []
for path in sorted(glob.glob('{0}/usr/lib/locale/*.utf8'.format(mountPoint))):
libdir = 'lib'
if path.isdir('{0}/usr/lib64/locale'.format(mountPoint)):
libdir = 'lib64'
for path in sorted(glob.glob('{0}/usr/{1}/locale/*.utf8'.format(mountPoint, libdir))):
locale = os.path.basename(path).rsplit('.', 1)[0]
title = execGetOutput("strings {0}/LC_IDENTIFICATION | grep -i 'locale for'".format(path))[0]
locales.append((locale, title))
Expand Down

0 comments on commit 00e6c4a

Please sign in to comment.