diff options
Diffstat (limited to 'configuration.py')
-rw-r--r-- | configuration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configuration.py b/configuration.py index 4dff336..0253ea4 100644 --- a/configuration.py +++ b/configuration.py @@ -598,6 +598,7 @@ class OptionsProviderMixIn: raise Exception('Bad option: %r' % option) if isinstance(optdict.get('default'), Method): optdict['default'].bind(self) + self.load_defaults() def load_defaults(self): """initialize the provider using default values""" @@ -767,7 +768,6 @@ class Configuration(ConfigurationMixIn): if doc is not None: self.__doc__ = doc super(Configuration, self).__init__(config_file=config_file, usage=usage, version=version) - self.load_defaults() class OptionsManager2ConfigurationAdapter: |