File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1+ from pydantic import BaseModel
2+
3+
4+ class PathConfig (BaseModel ):
5+ workPath : str = "../"
6+ processName : str = "QuickNote"
7+ tagPath : str = "./tags"
8+
9+ class ProxyConfig (BaseModel ):
10+ url : str = ""
11+
12+ class Config (BaseModel ):
13+ path : PathConfig = PathConfig ()
14+ proxy : ProxyConfig = ProxyConfig ()
Original file line number Diff line number Diff line change 22from pathlib import Path
33
44import yaml
5- from pydantic import BaseModel
65
6+ from Updater .config .model import Config
77
8- class PathConfig (BaseModel ):
9- processPath : str = "../QuickNote"
10- tagPath : str = "./tags"
11-
12- class ProxyConfig (BaseModel ):
13- url : str = ""
14-
15- class Config (BaseModel ):
16- path : PathConfig = PathConfig ()
17- proxy : ProxyConfig = ProxyConfig ()
188
199@lru_cache ()
2010def get_config () -> Config :
Original file line number Diff line number Diff line change 11path :
2- processPath : ../QuickNote.exe
2+ workPath : ../
3+ processName : QuickNote.exe
34 tagPath : ./data/tags
45
56proxy :
You can’t perform that action at this time.
0 commit comments