mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-06 22:12:12 +08:00
* check that routine title is valid * more updates * small fixes * override local routine * more improvements to routine logic * --debug runs .dev * few more updates * small fix * rename BASE_URL from ultima to ULTIMA_BASE_URL * use debug from dataclasses instead of env since env doesn't get updated * create --dev flag that can point to .dev backend * merge conflits * few changes, made it actually work 🤣 --------- Co-authored-by: tehcoderer <me@tehcoderer.com>
45 lines
1.1 KiB
Python
45 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()
|
|
)
|
|
dev = "--dev" in sys.argv[1:]
|
|
|
|
session_controller.main(prompt=prompt_login, dev=dev)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
freeze_support()
|
|
main()
|