feat: 优化定位转换器调整框架结构
- 新增 finder.py 重构定位转换器 - 优化 .gitignore 文件 - 其他优化
This commit is contained in:
@@ -43,6 +43,11 @@ EXCHANGER = Path(ROOT_PATH, "extract.toml")
|
||||
# 自增ID
|
||||
ID_PATH = Path(ROOT_PATH, "id.toml")
|
||||
|
||||
browser_dir: Path | str | None = None
|
||||
|
||||
chrome_driver: Path | str | None = None
|
||||
temp_user_data_dir: Path | str
|
||||
|
||||
# 默认配置
|
||||
DEFAULT_CONF = {
|
||||
"SCREENSHOT_DIR": SCREENSHOT_DIR,
|
||||
@@ -103,7 +108,6 @@ class Settings:
|
||||
|
||||
new_conf = DEFAULT_CONF | result
|
||||
for key, value in new_conf.items():
|
||||
|
||||
self.__setattr__(key, value)
|
||||
return self
|
||||
|
||||
@@ -134,4 +138,3 @@ configs = Settings()
|
||||
if __name__ == '__main__':
|
||||
...
|
||||
print(configs.items())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user