From f216422d0fbbade2125294a8dc172362717b5c0b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 1 Sep 2016 13:45:56 +0200 Subject: [PATCH] Debug shell support command history --- .gitignore | 1 + gns3server/web/web_server.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c19746a9..56925bba 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ docs/_build #VPCS vpcs.hist startup.vpcs +.gns3_shell_history diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index 8630f75c..ebfcd149 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -169,7 +169,7 @@ class WebServer: except ImportError: log.error("Unable to start a shell: the ptpython module must be installed!") return - yield from embed(globals(), locals(), return_asyncio_coroutine=True, patch_stdout=True) + yield from embed(globals(), locals(), return_asyncio_coroutine=True, patch_stdout=True, history_filename=".gns3_shell_history") def _exit_handling(self): """