aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-17 22:23:07 -0500
committerJoel Martin <github@martintribe.org>2014-04-17 22:23:07 -0500
commit718887c3019c49fc807bc18fbd5feb975ec03c85 (patch)
tree8b0d1d2e501541c015e66f4cde0510bdd94db195 /python
parentdb4c329aff4621e05b92a55be4f18173f5a4f655 (diff)
downloadmal-718887c3019c49fc807bc18fbd5feb975ec03c85.tar.gz
mal-718887c3019c49fc807bc18fbd5feb975ec03c85.zip
Ruby,Python,C#: readline history fixes. Ruby include path.
Diffstat (limited to 'python')
-rw-r--r--python/mal_readline.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/mal_readline.py b/python/mal_readline.py
index 2add6b5..fc22b58 100644
--- a/python/mal_readline.py
+++ b/python/mal_readline.py
@@ -8,7 +8,9 @@ else:
rl = raw_input
def readline(prompt="user> "):
+ global history_loaded
if not history_loaded:
+ history_loaded = True
try:
with open(histfile, "r") as hf:
for line in hf.readlines():