search

Home  >  Q&A  >  body text

python - oslo_config

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?

習慣沉默習慣沉默2708 days ago884

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-06-30 09:55:00

    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

    reply
    0
  • Cancelreply