All the module import in nl_server/__init__.py gets executed when importing any module under nl_server/. This makes build embedding tool depends on flask, for example.
This PR moves __init__.py to flask.py to solve that issue. There is no need to have the create_app() function live in __init__.py anyway.
All the module import in
nl_server/__init__.py
gets executed when importing any module undernl_server/
. This makes build embedding tool depends on flask, for example.This PR moves
__init__.py
toflask.py
to solve that issue. There is no need to have the create_app() function live in__init__.py
anyway.