windows and osx cannot find the rules folder, for now, ignore it

This commit is contained in:
mdipierro committed 2012-08-30 23:07:51 -05:00
1 parent 5edde2638e
commit c6037b0355
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.0.3 (2012-08-30 22:36:07) stable Version 2.0.3 (2012-08-30 23:07:46) stable
+1
View File
@@ -249,6 +249,7 @@ def read_possible_plurals():
pdir = pjoin(pdirname(__file__),'contrib','rules') pdir = pjoin(pdirname(__file__),'contrib','rules')
plurals = {} plurals = {}
# scan rules directory for plural_rules-*.py files: # scan rules directory for plural_rules-*.py files:
if os.path.exists(pdir):
for pname in os.listdir(pdir): for pname in os.listdir(pdir):
if not isdir(pname) and regex_plural_rules.match(pname): if not isdir(pname) and regex_plural_rules.match(pname):
lang = pname[13:-3] lang = pname[13:-3]