Skip to content

Commit 3616827

Browse files
committed
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.
1 parent f97be7c commit 3616827

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

roundup/i18n.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@
8888
_ldir = os.path.join(path, sys.base_prefix[root_prefix_chars:], 'share', 'locale')
8989
if os.path.isdir(_ldir):
9090
LOCALE_DIRS.append(_ldir)
91-
92-
# make -C locale local_install - locale directory in roundup source tree
93-
_ldir = os.path.join(path, 'locale', 'locale')
94-
if os.path.isdir(_ldir):
95-
LOCALE_DIRS.append(_ldir)
9691
except AttributeError:
9792
pass # no base_prefix on 2.7
93+
94+
# make -C locale local_install - locale directory in roundup source tree
95+
_ldir = os.path.join(path, 'locale', 'locale')
96+
if os.path.isdir(_ldir):
97+
LOCALE_DIRS.append(_ldir)
9898
del _ldir
9999

100100
# Roundup text domain

0 commit comments

Comments
 (0)