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]): """