mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
19 lines
650 B
Python
19 lines
650 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
|
|
|
|
IS_PACKAGE = True # is_packaged_application() uncomment to test in installer
|
|
|
|
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_PACKAGE:
|
|
login_controller.main()
|
|
else:
|
|
terminal_controller.parse_args_and_run()
|