config.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:rcli 作者: contains-io 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号