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)