mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* fix .env reading before loading * Update sdk.py * import cfg terminal explicitly * clear * add comment and update sdk helper * make it even more explicit * remove some comments * pylint * pylint
31 lines
826 B
Python
31 lines
826 B
Python
import sys
|
|
from multiprocessing import freeze_support
|
|
|
|
# pylint:disable=unused-import,import-outside-toplevel
|
|
import openbb_terminal.config_terminal as cfg # noqa: F401
|
|
import openbb_terminal.core.session.current_user as _ # noqa: F401
|
|
from openbb_terminal.terminal_helper import is_auth_enabled
|
|
|
|
|
|
def main():
|
|
sent_args = sys.argv[1:]
|
|
|
|
cfg.start_required_configurations()
|
|
|
|
if "-t" in sent_args or "--test" in sent_args:
|
|
from openbb_terminal.core.integration_tests import integration_controller
|
|
|
|
integration_controller.main()
|
|
else:
|
|
from openbb_terminal.core.session import session_controller
|
|
|
|
if is_auth_enabled():
|
|
session_controller.main()
|
|
else:
|
|
session_controller.launch_terminal()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
freeze_support()
|
|
main()
|