config.py 文件源码

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

项目:scarlett_os 作者: bossjones 项目源码 文件源码
def __init__(self, data):
        """
        Initialize with preparsed data object.

        :param ConfigParser data: config file accessor
        """
        self._data = data or {}

        # self.latitude = None  # type: Optional[float]
        # self.longitude = None  # type: Optional[float]
        # self.elevation = None  # type: Optional[int]
        # self.location_name = None  # type: Optional[str]
        # self.time_zone = None  # type: Optional[str]
        # self.units = METRIC_SYSTEM  # type: UnitSystem

        # # If True, pip install is skipped for requirements on startup
        # self.skip_pip = False  # type: bool

        # # List of loaded components
        # self.components = set()

        # # Remote.API object pointing at local API
        # self.api = None

        # # Directory that holds the configuration
        # self.config_dir = None

        self._scarlett_name = None
        self._coordinates = None
        self._longitude = None
        self._latitude = None
        self._pocketsphinx = None
        self._elevation = None
        self._unit_system = None
        self._time_zone = None
        self._owner_name = None
        self._keyword_list = None
        self._features_enabled = None
        # self._units = METRIC_SYSTEM  # type: UnitSystem
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号