1
0
Fork 0
forked from github/pelican

For python 2+, initialize locale. Fixes #2043

This commit is contained in:
L. E. Segovia 2016-12-14 14:08:09 +01:00
commit 5c6ae32f99

View file

@ -21,6 +21,8 @@ import six
from pelican import __version__
if (sys.version_info.major == 2):
locale.setlocale(locale.LC_ALL, '')
_TEMPLATES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"templates")