Compare commits

...

1 Commits

Author SHA1 Message Date
NewSoupVi
938d6c9bd4 APQuest: Improve the auto-generated .gitignore for data/sounds
I didn't quite think this through: In this specific case, you want the gitignore to also ignore itself, since it itself is an auto-generated file.
2025-11-25 14:53:22 +01:00

View File

@@ -16,10 +16,6 @@ def make_data_directory(dir_name: str) -> Path:
gitignore = specific_data_directory / ".gitignore" gitignore = specific_data_directory / ".gitignore"
with open(gitignore, "w") as f: with open(gitignore, "w") as f:
f.write( f.write("*\n")
"""*
!.gitignore
"""
)
return specific_data_directory return specific_data_directory