[PATCH] Better support for koji profiles.

Colin Walters walters at verbum.org
Wed Feb 4 16:06:47 UTC 2015


On Tue, Feb 3, 2015, at 09:32 AM, Daniel Mach wrote:

> +Then you can do following:
> +get koji profile_name from your config or code
> +>>> koji_module = __import__(profile_name)

I'd say we should recommend against adding these to the global Python path; e.g. it would be weird if "import centos" happened to be a koji configuration.  Options here are to enforce a naming scheme like "kojiconfig_$profile", or use a non-global import path like /usr/share/koji/profiles.



More information about the buildsys mailing list