6Q6B7IcsQeAs3RKVJbsgHG changeset
Changeset | 653235323031 (b) |
---|---|
Parent | None (a) |
a | b | ||
---|---|---|---|
0 | + | histfile = os.path.join(os.environ["HOME"], ".python_history") | |
0 | + | try: | |
0 | + | readline.read_history_file(histfile) | |
0 | + | except IOError, err: | |
0 | + | print err | |
0 | + | ||
0 | + | import atexit | |
0 | + | atexit.register(readline.write_history_file, histfile) | |
... |
|
|