smbinterp/interp/bootstrap.py
Stephen M. McQuay 1af176a6e0 Primarily: fixed the gmsh module to use integer indices
also did some pep8/pyflakes cleanup
2011-09-27 15:23:42 -06:00

20 lines
401 B
Python

import atexit
import os
import readline
import rlcompleter
historyPath = os.path.expanduser("~/.pyhistory")
def save_history(historyPath=historyPath):
import readline
readline.write_history_file(historyPath)
if os.path.exists(historyPath):
readline.read_history_file(historyPath)
rl = rlcompleter
atexit.register(save_history)
del os, atexit, readline, rl, save_history, historyPath