mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
19 lines
No EOL
329 B
Python
Executable file
19 lines
No EOL
329 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
with open("src/tiles.rs") as f:
|
|
content: str = f.read()
|
|
|
|
result = ''
|
|
|
|
while True:
|
|
next_add = content.find("//ADD")
|
|
if next_add == -1:
|
|
break
|
|
|
|
result += content[:next_add]
|
|
content = content[(next_add + 5):]
|
|
|
|
result += content
|
|
|
|
with open("src/tiles.rs", "w") as f:
|
|
f.write(result) |