From 05f330e1960f5ebe41bad5446c1448a4ad3b32ea Mon Sep 17 00:00:00 2001 From: jason <516623909@qq.com> Date: Thu, 13 Oct 2022 08:45:37 +0000 Subject: [PATCH] update ChineseOCR/main.py. Signed-off-by: jason <516623909@qq.com> --- ChineseOCR/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChineseOCR/main.py b/ChineseOCR/main.py index 26def7e..718a2bc 100644 --- a/ChineseOCR/main.py +++ b/ChineseOCR/main.py @@ -47,7 +47,7 @@ if __name__ == '__main__': output_path = os.path.dirname(os.path.realpath(__file__)) output_exer = os.path.join(output_path, 'output') if os.path.exists(output_exer): - os.remove(output_exer) + os.system(f"rm -r {output_exer}") if not os.path.exists(output_exer): os.makedirs(output_exer)