🎨 预先创建data文件夹

This commit is contained in:
Wuyi无疑 2023-03-11 22:06:57 +08:00
parent 09747e5245
commit 1a6cd1dea3

View File

@ -4,4 +4,6 @@ gs_data_path = Path(__file__).parents[1] / 'data'
def get_res_path() -> Path: def get_res_path() -> Path:
if not gs_data_path.exists():
gs_data_path.mkdir()
return gs_data_path return gs_data_path