Files
OpenBB/terminal.py
teh_coderer 0e9abc3a84 Feature/ Voila to Streamlit Dashboards (#4755)
* idk

* g

* idk

* init

* revert old push

* pylint

* ruff

* update

* mypy

* tests

* LF

* tests

* Update Futures.py

* tests?

* fix intraday candle breaks

* tests????

* remove matplotlib from settings controller, autocomplete for flair cmd

* Update test_settings_controller.py

* remove streamlit activate warnings as it's not needed anymore

* bump pywry

* fix daily date gaps

* Update pytrends

* Update terminal.spec

* Update terminal.spec

* Update terminal.spec

* Update macos-build.yml

* Update macos-build.yml

* Update windows10_build.yml

* Update terminal.spec

* streamlit

* streamlit configs

* test

* lint

* cmd source in charts

* Update dashboards_controller.py

* Update dashboards_controller.py

* Update backend.py

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 20:38:56 +00:00

42 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
import openbb_terminal.core.session.current_user as user # 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
hide_splashscreen()
sys.exit(streamlit.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
if is_auth_enabled() and ("--login" in sys.argv[1:] or is_installer()):
session_controller.main()
else:
session_controller.launch_terminal()
if __name__ == "__main__":
freeze_support()
main()