feat:初始化

This commit is contained in:
雷雨
2025-09-23 14:49:00 +08:00
parent e70a28be7d
commit 3ace3e5348
10 changed files with 944 additions and 0 deletions

0
template/__init__.py Normal file
View File

15
template/template.py Normal file
View File

@@ -0,0 +1,15 @@
import yaml
base_template = None
def load():
with open('./template.yaml', 'r', encoding='utf-8') as f:
global base_template
base_template = yaml.load(f, Loader=yaml.SafeLoader)
def get_base_template():
if not base_template:
load()
return base_template