GNOME Bugzilla – Bug 583227
jhbuildrc include support
Last modified: 2009-05-20 21:01:31 UTC
When running multiple prefixes, it'd be useful to be able to include a common jhbuildrc for common settings like dvcs_mirror_dir, tarballdir, makeargs etc.
jhbuildrc is Python code, so you could create jhbuild_common_settings.py, and from jhbuild_common_settings.py import *. Would it be enough for you?
That doesn't work because there's a bunch of default variables that don't get passed along with the import statement (like the module_autogenargs dictionary). Using execfile('/path/to/include') instead works fine.
commit 9f97cb52d1241253bac24ff6151350cb49d74b5e Author: Frédéric Péters <fpeters@0d.be> Date: Wed May 20 23:00:20 2009 +0200 [config] add include() support (GNOME bug 583227)