Added Makefile and pythonrc
This commit is contained in:
17
pythonrc
Normal file
17
pythonrc
Normal file
@@ -0,0 +1,17 @@
|
||||
import sys
|
||||
import os
|
||||
import atexit
|
||||
import readline
|
||||
|
||||
histfile = os.path.expanduser('~/.pythonhistory')
|
||||
try:
|
||||
readline.read_history_file(histfile)
|
||||
except IOError:
|
||||
pass
|
||||
def write_history(readline=readline, histfile=histfile):
|
||||
try:
|
||||
readline.write_history_file(histfile)
|
||||
except IOError:
|
||||
pass
|
||||
atexit.register(write_history)
|
||||
del histfile, atexit, write_history, sys, os
|
Reference in New Issue
Block a user