@classmethod<EOL><INDENT>def from_context(cls, ctx, config_paths=None, project=None):<DEDENT>
if ctx.obj is None:<EOL><INDENT>ctx.obj = Bunch()<EOL><DEDENT>ctx.obj.cfg = cls(ctx.info_name, config_paths, project=project)<EOL>return ctx.obj.cfg<EOL>
Create a configuration object, and initialize the Click context with it.