This commit is contained in:
anon
2024-03-17 17:53:22 +01:00
parent be90e1e940
commit 0924703710
7 changed files with 224 additions and 187 deletions

View File

@ -1,14 +1,7 @@
import os
import atexit
import readline
from sys import *
from subprocess import *
from shlex import *
from numpy import *
from time import *
import re
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