windows 版本

This commit is contained in:
Julian Freeman
2024-06-27 23:10:46 -04:00
parent f7811b89c5
commit 8c02532e28
18 changed files with 2039 additions and 1 deletions

10
utils.py Normal file
View File

@@ -0,0 +1,10 @@
# coding: utf8
import json
from pathlib import Path
def read_template(browser: str) -> dict:
filepath = Path(__file__).parent / "templates" / f"{browser}.json"
if not filepath.exists():
return {}
return json.loads(filepath.read_text("utf8"))