diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-17 22:23:07 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-17 22:23:07 -0500 |
| commit | 718887c3019c49fc807bc18fbd5feb975ec03c85 (patch) | |
| tree | 8b0d1d2e501541c015e66f4cde0510bdd94db195 /python | |
| parent | db4c329aff4621e05b92a55be4f18173f5a4f655 (diff) | |
| download | mal-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.py | 2 |
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(): |
