1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

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.hist
startup.vpcs
.gns3_shell_history

View File

@ -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):
"""