.
This commit is contained in:
14
python/.pythonrc
Normal file
14
python/.pythonrc
Normal file
@ -0,0 +1,14 @@
|
||||
import os
|
||||
import atexit
|
||||
import readline
|
||||
|
||||
histfile = os.path.join(os.environ['HOME'], "mm/Python/Pythonrc", '.python_history')
|
||||
|
||||
try:
|
||||
readline.read_history_file(histfile)
|
||||
except IOError:
|
||||
print('I/O Error while reading history file "' + histfile + '"')
|
||||
|
||||
atexit.register(readline.write_history_file, histfile)
|
||||
|
||||
del os, histfile, readline
|
Reference in New Issue
Block a user