SP/web2py/gluon/contrib/pyuca/__init__.py

11 lines
231 B
Python
Raw Permalink Normal View History

2018-10-25 15:33:07 +00:00
import os
import pyuca
unicode_collator = None
def set_unicode_collator(file):
global unicode_collator
unicode_collator = pyuca.Collator(file)
set_unicode_collator(os.path.join(os.path.dirname(__file__), 'allkeys.txt'))