Skip to content

Commit

Permalink
Automatically create build director if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Dec 13, 2024
1 parent a986164 commit 84eca30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_system/core/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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]):
"""
Expand Down

0 comments on commit 84eca30

Please sign in to comment.