def __init__(self):
# type: () -> None
"""Initialize the data for the configuration."""
self._command = None # type: str
self._subcommands = {} # type: typing.Dict[str, RcliEntryPoint]
self._version = None # type: str
self._entry_point = None # type: pkg_resources.EntryPoint
self._config = {} # type: typing.Dict[str, typing.Any]
if (self.distribution and
self.distribution.has_metadata('rcli-config.json')):
data = self.distribution.get_metadata('rcli-config.json')
self._config = json.loads(data)
评论列表
文章目录