python - oslo_config
習慣沉默
習慣沉默 2017-06-30 09:53:00
0
1
877

oslso-config
has this usage in use.



But where CONF is defined, no parameters are required. How can I pass it to CONF when calling? What about parameters?

習慣沉默
習慣沉默

reply all(1)
大家讲道理

Look at oslo_config.cfg.ConfigOpts#__call__

https://github.com/openstack/...


    def __call__(self,
                 args=None,
                 project=None,
                 prog=None,
                 version=None,
                 usage=None,
                 default_config_files=None,
                 default_config_dirs=None,
                 validate_default_values=False,
                 description=None,
                 epilog=None):

Magic method __call__ Use objects as functions

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template