def package_config(path, template='<STR_LIT>', config_name='<STR_LIT>', **params):
config_fns = []<EOL>template_fns = rglob(path, template)<EOL>for template_fn in template_fns:<EOL><INDENT>config_template = ConfigTemplate(fn=template_fn)<EOL>config = config_template.render(<EOL>fn=os.path.join(os.path.dirname(template_fn), config_name), <EOL>prompt=True, path=path, **params)<EOL>config.write()<EOL>config_fns.append(config.fn)<EOL>log.info('<STR_LIT>' % config)<EOL><DEDENT>return config_fns<EOL>
configure the module at the given path with a config template and file.
        path        = the filesystem path to the given module
        template    = the config template filename within that path
        config_name = the config filename within that path
        params      = a dict containing config params, which are found in the template using %(key)s.