-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (20 loc) · 737 Bytes
/
config.py
File metadata and controls
27 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
"""
Configuration file for the whole project
"""
import os
import logging
from pathlib import Path
logging.basicConfig(
# format='%(message)s',
format='%(filename)s [LINE:%(lineno)d]\t[%(asctime)s] %(levelname)-s\t%(funcName)s() \t\t%(message)s',
level=logging.INFO,
datefmt="%y-%m-%d %H:%M:%S")
log = logging.getLogger(__name__)
EN = "en"
DEFAULT_LANGUAGE = os.getenv("DEFAULT_LANGUAGE", EN)
DEFAULT_STYLE = os.getenv("DEFAULT_STYLE", "ultra")
HTML_EXPORT_DIRECTORY_PATH_LOCAL = os.environ.get("HTML_EXPORT_DIRECTORY_PATH_LOCAL", "")
# TODO Add current directory as Default
if HTML_EXPORT_DIRECTORY_PATH_LOCAL:
Path(HTML_EXPORT_DIRECTORY_PATH_LOCAL).mkdir(parents=True, exist_ok=True)