blob: 9173e131656f8a5c378e2130c01b95745880e2b2 (
plain) (
tree)
|
|
import os
import atexit
import readline
history = os.path.join(os.environ['XDG_DATA_HOME'], 'python/history.py')
readline.read_history_file(history)
def write_history():
readline.write_history_file(history)
atexit.register(write_history)
|