summaryrefslogtreecommitdiff
path: root/hack/graphql_to_header.py
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2025-06-12 01:43:36 -0700
committerGravatar Anshul Gupta <ansg191@anshulg.com> 2025-06-12 01:46:22 -0700
commite3b96711f9f7bb2c8ec6c3c51b7525d0f5fd9413 (patch)
tree1b2ba847333bae38424571bab964ad2ffab0fa87 /hack/graphql_to_header.py
parent179679633a9fc3317585167f86c87a7fe8394945 (diff)
downloadgithub-mirror-e3b96711f9f7bb2c8ec6c3c51b7525d0f5fd9413.tar.gz
github-mirror-e3b96711f9f7bb2c8ec6c3c51b7525d0f5fd9413.tar.zst
github-mirror-e3b96711f9f7bb2c8ec6c3c51b7525d0f5fd9413.zip
Implement sourcehut remote
Diffstat (limited to 'hack/graphql_to_header.py')
-rw-r--r--hack/graphql_to_header.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hack/graphql_to_header.py b/hack/graphql_to_header.py
index da0107d..c4eaa5f 100644
--- a/hack/graphql_to_header.py
+++ b/hack/graphql_to_header.py
@@ -8,6 +8,7 @@ var_name = sys.argv[3]
with input_path.open() as f:
lines = f.readlines()
+output_path.parent.mkdir(parents=True, exist_ok=True)
with output_path.open("w") as f:
f.write(
f'''#ifndef QUERIES_{var_name.upper()}_H