SP/web2py/gluon/contrib/pyuca/__init__.py
Saturneic 064f602b1a Add.
2018-10-25 23:33:13 +08:00

11 lines
231 B
Python

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'))