def update_context(name, ctx=None):
 if (ctx is None):
  ctx = builtins.__xonsh_ctx__
 if (not hasattr(update_context, 'bad_imports')):
  update_context.bad_imports = []
 modctx = xontrib_context(name)
 if (modctx is None):
  update_context.bad_imports.append(name)
  return ctx
 return ctx.update(modctx)

def update_context ( name , ctx = None ) : if ( ctx is None ) : ctx = builtins . __xonsh_ctx__ if ( not hasattr ( update_context , 'bad_imports' ) ) : update_context . bad_imports = [ ] modctx = xontrib_context ( name ) if ( modctx is None ) : update_context . bad_imports . append ( name ) return ctx return ctx . update ( modctx )
updates a context in place from a xontrib .