This commit is contained in:
Spartan322
2025-01-04 00:55:26 -05:00
376 changed files with 3848 additions and 2763 deletions

View File

@@ -39,6 +39,9 @@ def main():
name_snake_case = snake_case_regex.sub("_", prefiltered_name).lower()
file_path = os.path.normpath(os.path.join(args.path, f"test_{name_snake_case}.h"))
# Ensure the directory exists.
os.makedirs(os.path.dirname(file_path), exist_ok=True)
print(file_path)
if os.path.isfile(file_path):
print(f'ERROR: The file "{file_path}" already exists.')