Skip to content

Commit

Permalink
patch deepfreeze.py to create missing parent dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Dec 12, 2024
1 parent e23b76b commit 5e8118a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions patches/3.13/06-deepfreeze-mkdir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/Tools/build/deepfreeze.py b/Tools/build/deepfreeze.py
index 05633e3f77a..a8bdfb37b70 100644
--- a/Tools/build/deepfreeze.py
+++ b/Tools/build/deepfreeze.py
@@ -518,6 +518,7 @@ def main() -> None:
else:
rules = args.args

+ os.makedirs(os.path.dirname(output), exist_ok=True)
with open(output, "w", encoding="utf-8") as file:
with report_time("generate"):
generate(rules, file)

0 comments on commit 5e8118a

Please sign in to comment.