Debug shell support command history

This commit is contained in:
Julien Duponchelle 2016-09-01 13:45:56 +02:00
parent 4624c7433c
commit f216422d0f
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -52,3 +52,4 @@ docs/_build
#VPCS #VPCS
vpcs.hist vpcs.hist
startup.vpcs startup.vpcs
.gns3_shell_history

View File

@ -169,7 +169,7 @@ class WebServer:
except ImportError: except ImportError:
log.error("Unable to start a shell: the ptpython module must be installed!") log.error("Unable to start a shell: the ptpython module must be installed!")
return 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): def _exit_handling(self):
""" """