Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/config.py @ 406:5286df5aeefe
Allow a jailed configuration to return its base configuration via a property
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Fri, 19 Nov 2021 13:27:41 +0100 |
| parents | af367e1d0950 |
| children | 3c95faa91dad |
line wrap: on
line diff
--- a/configmix/config.py Fri Nov 19 13:26:53 2021 +0100 +++ b/configmix/config.py Fri Nov 19 13:27:41 2021 +0100 @@ -726,6 +726,11 @@ self._pathstr = '' self.rebind(config) + @property + def base(self): + """Ask for the base (aka parent) configuration""" + return self._base + def rebind(self, new_base): """Bind the jail to a new unjailed configuration `new_base`.
