From a713e4d70c534239a5c161f3d9924c14a6577c9f Mon Sep 17 00:00:00 2001 From: Ftps Date: Sun, 19 Nov 2023 04:07:40 +0900 Subject: [PATCH] paths --- rvc/modules/vc/modules.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/rvc/modules/vc/modules.py b/rvc/modules/vc/modules.py index a7aba4f..d9791fe 100644 --- a/rvc/modules/vc/modules.py +++ b/rvc/modules/vc/modules.py @@ -172,21 +172,8 @@ class VC: format1, ): try: - dir_path = ( - dir_path.strip(" ").strip('"').strip("\n").strip('"').strip(" ") - ) # 防止小白拷路径头尾带了空格和"和回车 - opt_root = opt_root.strip(" ").strip('"').strip("\n").strip('"').strip(" ") os.makedirs(opt_root, exist_ok=True) - try: - if dir_path != "": - paths = [ - os.path.join(dir_path, name) for name in os.listdir(dir_path) - ] - else: - paths = [path.name for path in paths] - except: - traceback.print_exc() - paths = [path.name for path in paths] + paths = [path.name for path in paths] infos = [] for path in paths: info, opt = self.vc_single(