优化了导入数据的代码

更新README
This commit is contained in:
Yorusora
2025-05-22 10:38:47 +08:00
parent a7758e502e
commit c6778b5548
10 changed files with 125 additions and 77 deletions

View File

@ -1209,9 +1209,6 @@ class Data:
if Path(Config["Path"]["Input_BCG"]).is_file():
Config["Path"]["Input_BCG"] = str(Path(Config["Path"]["Input_BCG"]).parent)
if (not Path(Config["Path"]["Input_orgBcg"]).exists()) or (not Path(Config["Path"]["Input_BCG"]).exists()):
return Result().failure(info=Constants.INPUT_FAILURE + Constants.FAILURE_REASON["Path_Not_Exist"])
result = PublicFunc.examine_file(Config["Path"]["Input_orgBcg"], ConfigParams.ORGBCG_SYNC)
if result.status:
Config["Path"]["Input_orgBcg"] = result.data["path"]