From 81b88437515238919e72302e53ddcbac769b9e51 Mon Sep 17 00:00:00 2001 From: AndrewI26 <105824138+AndrewI26@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:15:14 -0500 Subject: [PATCH] reverting last commit --- scripts/cangen/cangen/can_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cangen/cangen/can_generator.py b/scripts/cangen/cangen/can_generator.py index e668d965f..a20673035 100644 --- a/scripts/cangen/cangen/can_generator.py +++ b/scripts/cangen/cangen/can_generator.py @@ -239,6 +239,7 @@ def generate_code(bus: Bus, config: Config): def _prepare_output_directory(output_dir): """Deletes previously generated files and creates a gitignore for the directory""" + os.makedirs(output_dir, exist_ok=True) shutil.rmtree(output_dir) os.makedirs(output_dir, exist_ok=True)