mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
20 lines
660 B
Python
20 lines
660 B
Python
import multiprocessing
|
|
import sys
|
|
from openbb_terminal import terminal_controller
|
|
from openbb_terminal.core.integration_tests import integration_controller
|
|
from openbb_terminal.account import login_controller
|
|
from openbb_terminal.terminal_helper import is_packaged_application
|
|
|
|
|
|
if __name__ == "__main__":
|
|
multiprocessing.freeze_support()
|
|
sent_args = sys.argv[1:]
|
|
if "-t" in sent_args or "--test" in sent_args:
|
|
integration_controller.main()
|
|
elif (
|
|
is_packaged_application() or True
|
|
): # remove True to force login just on installer
|
|
login_controller.main()
|
|
else:
|
|
terminal_controller.parse_args_and_run()
|