miniserver setup

This commit is contained in:
2024-04-14 11:49:33 -06:00
parent c9c154410e
commit 90714fdb61
19 changed files with 3298 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import os
import atexit
import readline
history = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history')
try:
readline.read_history_file(history)
except OSError:
pass
def write_history():
try:
readline.write_history_file(history)
except OSError:
pass
atexit.register(write_history)