mods that hopefully work for a TechAge-based pack
This commit is contained in:
1 parent
4e6b08d194
commit
c27db2a537
6234 files changed
+375578
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
|
||||
spath = "./"
|
||||
n = len(spath)
|
||||
|
||||
for root, dirs, files in os.walk(spath):
|
||||
offs = root[n:]
|
||||
for fname in files:
|
||||
name, ext = os.path.splitext(fname)
|
||||
if ext == ".lua":
|
||||
src = os.path.join(spath, offs, fname)
|
||||
lOut = []
|
||||
changed = False
|
||||
for line in open(src, "rt").readlines():
|
||||
line2 = line.rstrip()
|
||||
if len(line2) != len(line) - 1:
|
||||
changed = True
|
||||
lOut.append(line2)
|
||||
if changed:
|
||||
print("%s changed" % src)
|
||||
text = "\n".join(lOut) + "\n"
|
||||
open(src, "wt").write(text)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user