do not report shell arguments to embedded ipython shell
This commit is contained in:
parent
1953fb9e97
commit
d913819c01
1 changed files with 2 additions and 2 deletions
|
|
@ -38,8 +38,8 @@ class WeboobDebug(ConsoleApplication):
|
||||||
return 1
|
return 1
|
||||||
browser = backend.browser
|
browser = backend.browser
|
||||||
from IPython.Shell import IPShellEmbed
|
from IPython.Shell import IPShellEmbed
|
||||||
shell = IPShellEmbed()
|
shell = IPShellEmbed(argv=[])
|
||||||
locs = dict(backend=backend, browser=browser)
|
locs = dict(backend=backend, browser=browser, frontend=self, weboob=self.weboob)
|
||||||
banner = 'Weboob debug shell\nBackend "%s" loaded.\nAvailable variables: %s' % (backend_name, locs)
|
banner = 'Weboob debug shell\nBackend "%s" loaded.\nAvailable variables: %s' % (backend_name, locs)
|
||||||
shell.set_banner(shell.IP.BANNER + '\n\n' + banner)
|
shell.set_banner(shell.IP.BANNER + '\n\n' + banner)
|
||||||
shell(local_ns=locs, global_ns={})
|
shell(local_ns=locs, global_ns={})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue