small change of kwarg to xonshrc_context

to keep things compatible with changes to environ.py which allow for a
system-wide xonshrc in addition to the user defined file
This commit is contained in:
Gil Forsyth 2015-10-21 14:57:05 -04:00
parent 3f769c85c5
commit 6383654180

View file

@ -60,6 +60,6 @@ class Shell(object):
self.ctx = ctx self.ctx = ctx
else: else:
rc = env.get('XONSHRC') rc = env.get('XONSHRC')
self.ctx = xonshrc_context(rcfile=rc, execer=self.execer) self.ctx = xonshrc_context(rcfiles=rc, execer=self.execer)
builtins.__xonsh_ctx__ = self.ctx builtins.__xonsh_ctx__ = self.ctx
self.ctx['__name__'] = '__main__' self.ctx['__name__'] = '__main__'