mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
For python 2+, initialize locale. Fixes #2043
This commit is contained in:
parent
c413bcdb94
commit
5c6ae32f99
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ import six
|
||||||
|
|
||||||
from pelican import __version__
|
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_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||||
"templates")
|
"templates")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue