mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
* comment call_news * remove news * remove keys controller * remove settings controller * remove ta forex * remove qa economy * remove ta stocks * remove qa stocks * remove fa stocks * remove ins stocks * remove gov stocks * remove dps stocks * remove ba stocks * remove bt stocks * remove stocks * remove stocks base controller class * ruff * remove qa forex * remove oanda * remove forex * remove forex * remove forex * remove mention to fx_tickers * remove ta crypto * remove qa crypto * remove dd crypto * remove crypto controller * remove crypto references * remove economy controller * remove economy folder * remoe etf controller * remove reports controller * remove dashboards controller * remove alt controller * rmeove etf files * remove alt files * remove custom reports * remove dashboard files * remove econometrics controller * remove forecast controller * remove reports files * remove forecast files * remove econometrics files * remove portfolio * remove futures * remove fixedincome * remove funds * remove sdk and common * remove all from init * remove reference to ipykernel * remove reference to ta_helpers * remove reference to ta_helpers * cleanup * adjustments to choices * remove old sdk generator * remove mention to dashboards * ruff * cleanup * remove logging infra * remove decorators * remove sdk audit * remove tought of the day * remove tought of the day * fix commands andmenus choices * fixing lints * ruffs * remove old tests
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
import sys
|
|
import warnings
|
|
from multiprocessing import freeze_support
|
|
|
|
# pylint:disable=wrong-import-position
|
|
warnings.filterwarnings("ignore", category=FutureWarning, module="yfinance.*")
|
|
import openbb_terminal.config_terminal as cfg # noqa: E402
|
|
|
|
# pylint:disable=unused-import,import-outside-toplevel
|
|
import openbb_terminal.core.session.current_system as syst # noqa: F401,E402
|
|
from openbb_terminal.terminal_helper import ( # noqa: E402
|
|
is_auth_enabled,
|
|
is_installer,
|
|
)
|
|
|
|
|
|
def main():
|
|
sent_args = sys.argv[1:]
|
|
cfg.setup_config_terminal()
|
|
|
|
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()
|
|
)
|
|
dev = "--dev" in sys.argv[1:]
|
|
|
|
session_controller.main(prompt=prompt_login, dev=dev)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
freeze_support()
|
|
main()
|