Fix line endings in windows (#611)

* force lf windows

* Update torch
This commit is contained in:
coco875
2024-04-17 21:58:11 +02:00
committed by GitHub
parent e05474030f
commit 91dcf56629
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
import re
import sys
import io
abbreviations = {
"banshee_boardwalk": "BB",
@@ -365,6 +366,6 @@ with open(f"courses/{course_name}/course_offsets.c", "r") as offsets:
# Write to files only after we've generated their entire contents. That way if an
# error occurs during the generation we don't write an incomplete file
with open(f"courses/{course_name}/course_textures.linkonly.c", "w") as linkonlyc, open(f"courses/{course_name}/course_textures.linkonly.h", "w") as linkonlyh:
with io.open(f"courses/{course_name}/course_textures.linkonly.c", "w", newline="\n") as linkonlyc, io.open(f"courses/{course_name}/course_textures.linkonly.h", "w", newline="\n") as linkonlyh:
linkonlyh.write(h_string)
linkonlyc.write(c_string)