mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
added script as appName (#1483)
This commit is contained in:
10
terminal.py
10
terminal.py
@@ -322,9 +322,9 @@ class TerminalController(BaseController):
|
||||
self.queue = cmds_with_params.split("/")
|
||||
|
||||
|
||||
def terminal(jobs_cmds: List[str] = None):
|
||||
def terminal(jobs_cmds: List[str] = None, appName: str = "gst"):
|
||||
"""Terminal Menu"""
|
||||
setup_logging("gst")
|
||||
setup_logging(appName)
|
||||
logger.info("START")
|
||||
logger.info("Python: %s", platform.python_version())
|
||||
logger.info("OS: %s", platform.system())
|
||||
@@ -527,14 +527,14 @@ def run_scripts(
|
||||
file_cmds = [" ".join(file_cmds)]
|
||||
|
||||
if not test_mode:
|
||||
terminal(file_cmds)
|
||||
terminal(file_cmds, appName="gst_script")
|
||||
# TODO: Add way to track how many commands are tested
|
||||
else:
|
||||
if verbose:
|
||||
terminal(file_cmds)
|
||||
terminal(file_cmds, appName="gst_script")
|
||||
else:
|
||||
with suppress_stdout():
|
||||
terminal(file_cmds)
|
||||
terminal(file_cmds, appName="gst_script")
|
||||
else:
|
||||
console.print(f"File '{path}' doesn't exist. Launching base terminal.\n")
|
||||
if not test_mode:
|
||||
|
||||
Reference in New Issue
Block a user