mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 17:01:58 +00:00
12 lines
305 B
Python
12 lines
305 B
Python
import os
|
|
|
|
from prompt_toolkit import PromptSession
|
|
from prompt_toolkit.history import FileHistory
|
|
|
|
history_file = os.path.join(os.path.expanduser("~"), ".gamestonk_terminal.his")
|
|
|
|
try:
|
|
session = PromptSession(history=FileHistory(history_file))
|
|
except Exception as e: # noqa: F841
|
|
session = None
|