dot_testing/home/python/pythonrc.py

20 lines
350 B
Python
Raw Normal View History

2022-06-18 15:41:52 -05:00
import os
import atexit
import readline
history = os.path.join(os.path.expanduser('~'), '.cache/python_history')
try:
readline.read_history_file(history)
except OSError:
pass
def write_history():
try:
readline.write_history_file(history)
except OSError:
pass
print("laskdjflaskfjd")
atexit.register(write_history)