From 6cb316ff01e92deca4e9c08030c3162e1ff674f4 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 20 Aug 2020 15:38:54 +0200 Subject: [PATCH] Fix: remove shutil --- test_no_compile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test_no_compile.py b/test_no_compile.py index 3054e38..c894b09 100644 --- a/test_no_compile.py +++ b/test_no_compile.py @@ -1,14 +1,12 @@ from pathlib import Path import os -import shutil SNIPPETS_DIR = "./snippets" OUTPUT = "./output" if __name__ == "__main__": output = Path(OUTPUT) - shutil.rmtree(output) - output.mkdir() + output.mkdir(exist_ok=True) snippets_dir = Path(SNIPPETS_DIR) for snippet in snippets_dir.rglob("tpl_*.tex"): print(snippet)