From 718887c3019c49fc807bc18fbd5feb975ec03c85 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 17 Apr 2014 22:23:07 -0500 Subject: Ruby,Python,C#: readline history fixes. Ruby include path. --- python/mal_readline.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/mal_readline.py') 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(): -- cgit v1.2.3