mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-09 20:28:57 -04:00
Fix the python script so it detects \r correctly.
This commit is contained in:
parent
48bf2a6d0a
commit
1ba81dc62f
@ -16,7 +16,7 @@ for subdir, dirs, files in os.walk("."):
|
|||||||
if filepath.startswith("./zig-cache"): continue
|
if filepath.startswith("./zig-cache"): continue
|
||||||
|
|
||||||
if filepath.endswith(".json") or filepath.endswith(".zig") or filepath.endswith(".py") or filepath.endswith(".zon") or filepath.endswith(".vs") or filepath.endswith(".fs") or filepath.endswith(".glsl"):
|
if filepath.endswith(".json") or filepath.endswith(".zig") or filepath.endswith(".py") or filepath.endswith(".zon") or filepath.endswith(".vs") or filepath.endswith(".fs") or filepath.endswith(".glsl"):
|
||||||
with open(filepath, "r") as f:
|
with open(filepath, "r", newline = '') as f:
|
||||||
string = f.read()
|
string = f.read()
|
||||||
line = 1
|
line = 1
|
||||||
lineStart = True
|
lineStart = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user