From 62d1f375654b513c71ac25e30ca4c85ebe98bc73 Mon Sep 17 00:00:00 2001 From: oxygenkun <24502572+ddtyjmyjm@users.noreply.github.com> Date: Sat, 26 Dec 2020 15:34:44 +0800 Subject: [PATCH] fix: wrong root path detected --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index 82562d5..f83a60b 100755 --- a/core.py +++ b/core.py @@ -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) # 定义番号