|
@@ -1,5 +1,14 @@
|
|
import configure
|
|
import configure
|
|
import app as App
|
|
import app as App
|
|
|
|
+import os
|
|
|
|
+import logging
|
|
|
|
|
|
-app = App.HEnglishFlask(__name__)
|
|
|
|
|
|
|
|
|
|
+env_dict = os.environ
|
|
|
|
+hblog_conf = env_dict.get("HENGLISH_CONF")
|
|
|
|
+if hblog_conf is not None:
|
|
|
|
+ logging.info(f"Configure file {hblog_conf}")
|
|
|
|
+ configure.configure(hblog_conf, encoding="utf-8")
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+app = App.HEnglishFlask(__name__)
|