mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* Update .gitignore * init * Update backend.py * Update main.tsx * Update no_import.py * Update session_controller.py * indents * adjust window size * update keys * re-add save session for pywry login * pop response keys on rename * walrus remember * use session username for profile * implement logout clearing of cookies * don't display welcome when logging in from `account` menu * Update session_model.py * Update session_model.py * customdata handler for charts * fix remember key * only slice data if chandlestick trace in data * Update profile_model.py * Update streamlit_run.py * Update plotly.html * test * Update loggers.py * updates * Update session_controller.py * Update session_controller.py * no longer need to call_hub for logout * tests * Update test_session_controller.py * Update profile_model.py * bump pywry, fix numbers passed as strings tables * update plotly frontend packages * formatting * Update backend.py * Update backend.py * change to prod * return on image export --------- Co-authored-by: James Maslek <jmaslek11@gmail.com>
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
import sys
|
|
from multiprocessing import freeze_support
|
|
|
|
import openbb_terminal.config_terminal as cfg
|
|
|
|
# pylint:disable=unused-import,import-outside-toplevel
|
|
import openbb_terminal.core.session.current_system as syst # noqa: F401
|
|
from openbb_terminal.terminal_helper import (
|
|
hide_splashscreen,
|
|
is_auth_enabled,
|
|
is_installer,
|
|
)
|
|
|
|
|
|
def main():
|
|
sent_args = sys.argv[1:]
|
|
cfg.setup_config_terminal()
|
|
|
|
if "--streamlit" in sent_args:
|
|
from openbb_terminal.dashboards import streamlit_run
|
|
|
|
hide_splashscreen()
|
|
sys.exit(streamlit_run.main())
|
|
|
|
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
|
|
|
|
prompt_login = (
|
|
is_auth_enabled()
|
|
and ("--login" in sys.argv[1:] or is_installer())
|
|
and sys.stdin.isatty()
|
|
)
|
|
|
|
session_controller.main(prompt=prompt_login)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
freeze_support()
|
|
main()
|