Added sendmail library
This commit is contained in:
parent
59bd97be74
commit
e40b618349
6 changed files with 228 additions and 16 deletions
|
|
@ -4,23 +4,32 @@ from importlib import import_module
|
|||
import os
|
||||
import sys
|
||||
import inspect
|
||||
from paramecio2.libraries.datetime import set_timezone
|
||||
|
||||
def start_app():
|
||||
|
||||
set_timezone()
|
||||
|
||||
app=Flask(__name__, static_url_path=config.static_url_path, static_folder=config.static_folder)
|
||||
|
||||
app.secret_key=config.secret_key
|
||||
|
||||
app.config['JSON_SORT_KEYS']=False
|
||||
|
||||
application_root='/'
|
||||
|
||||
if hasattr(config, 'application_root'):
|
||||
application_root=config.application_root
|
||||
|
||||
|
||||
app.config.update(
|
||||
APPLICATION_ROOT=application_root
|
||||
)
|
||||
|
||||
if hasattr(config, 'json_sort_keys'):
|
||||
app.config.update(
|
||||
JSON_SORT_KEYS=config.json_sort_keys
|
||||
)
|
||||
|
||||
workdir=os.getcwd()
|
||||
arr_module_path={}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue