From 291b16b536e4a574031418cfb1ea1b4fcbc2f5f5 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Fri, 13 Dec 2024 02:34:41 +0100 Subject: [PATCH] Automatically create build directory if it does not exist. --- build_system/core/changes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_system/core/changes.py b/build_system/core/changes.py index 528f0b70e..4590a8507 100644 --- a/build_system/core/changes.py +++ b/build_system/core/changes.py @@ -10,7 +10,7 @@ from typing import Dict, List, Set from core.modules import Module -from util.io import TextFile +from util.io import TextFile, create_directories class JsonFile(TextFile): @@ -66,6 +66,7 @@ def __init__(self, file: str): :param file: The path to the JSON file """ super().__init__(file, accept_missing=True) + create_directories(path.dirname(file)) def update(self, module_name: str, files: Set[str]): """