Mercurial > p > roundup > code
diff roundup/i18n.py @ 7761:40f817992faa
fix: make in tree locale work for python2
Code to add locale locale/locale directory was in a branch that worked
only for python3. Move so it work for python2 as well.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 02 Mar 2024 01:22:36 -0500 |
| parents | 481235e743bc |
| children | a9da9c8e4295 |
line wrap: on
line diff
--- a/roundup/i18n.py Sat Mar 02 01:11:20 2024 -0500 +++ b/roundup/i18n.py Sat Mar 02 01:22:36 2024 -0500 @@ -88,13 +88,13 @@ _ldir = os.path.join(path, sys.base_prefix[root_prefix_chars:], 'share', 'locale') if os.path.isdir(_ldir): LOCALE_DIRS.append(_ldir) - - # make -C locale local_install - locale directory in roundup source tree - _ldir = os.path.join(path, 'locale', 'locale') - if os.path.isdir(_ldir): - LOCALE_DIRS.append(_ldir) except AttributeError: pass # no base_prefix on 2.7 + +# make -C locale local_install - locale directory in roundup source tree +_ldir = os.path.join(path, 'locale', 'locale') +if os.path.isdir(_ldir): + LOCALE_DIRS.append(_ldir) del _ldir # Roundup text domain
