Fix locale

This commit is contained in:
2021-06-01 23:01:10 +02:00
parent cebe819e25
commit 8c0478fafb

View File

@@ -11,6 +11,12 @@ import os
from peewee import * from peewee import *
from bottle import hook, request, route, run, view from bottle import hook, request, route, run, view
# Set the locale for all categories to the users default setting (eg. LANG
# environment variable)
import locale
locale.setlocale(locale.LC_ALL, '')
# ------------------------------------------------------------ # ------------------------------------------------------------
conf = ConfigParser() conf = ConfigParser()
conf.read(os.path.dirname(__file__) + '/balises.ini') conf.read(os.path.dirname(__file__) + '/balises.ini')