fix: wrong root path detected

This commit is contained in:
oxygenkun
2020-12-26 15:34:44 +08:00
parent ad541a3756
commit 62d1f37565

View File

@@ -522,7 +522,7 @@ def core_main(file_path, number_th, conf: config.Config):
filepath = file_path # 影片的路径 绝对路径
rootpath = str(pathlib.Path(filepath).parent)
rootpath = os.getcwd() #程序根路径
number = number_th
json_data = get_data_from_json(number, filepath, conf) # 定义番号