优化了导入数据的代码
更新README
This commit is contained in:
@ -398,9 +398,6 @@ class Data:
|
||||
if Path(Config["Path"]["Input"]).is_file():
|
||||
Config["Path"]["Input"] = str(Path(Config["Path"]["Input"]).parent)
|
||||
|
||||
if not Path(Config["Path"]["Input"]).exists():
|
||||
return Result().failure(info=Constants.INPUT_FAILURE + Constants.FAILURE_REASON["Path_Not_Exist"])
|
||||
|
||||
result = PublicFunc.examine_file(Config["Path"]["Input"], ConfigParams.BCG_FILTER)
|
||||
if result.status:
|
||||
Config["Path"]["Input"] = result.data["path"]
|
||||
|
||||
Reference in New Issue
Block a user