Commit c81ba732 authored by adam j hartz's avatar adam j hartz

change when __tako_shell__ is set up

parent d3bc33e5
......@@ -170,7 +170,7 @@ def premain(argv=None):
shell_kwargs['completer'] = True
shell_kwargs['login'] = True
from takoshell import imphooks
shell = builtins.__tako_shell__ = Shell(**shell_kwargs)
shell = Shell(**shell_kwargs)
env = builtins.__tako_env__
takorc_context('config.tako', execer=shell.execer, initial=shell.ctx)
env['TAKO_LOGIN'] = shell_kwargs['login']
......
......@@ -54,6 +54,7 @@ class Shell(object):
self.login = kwargs.get('login', True)
self.headless = headless
self.kwargs = kwargs
builtins.__tako_shell__ = self
self._init_environ(ctx,
kwargs.get('scriptcache', True),
kwargs.get('cacheall', False))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment