Move the new CleanFiles Python script to Tools/

So it won't be shipped to users. Also, fix it up so that it finds
the ini files regardless of where it is.
This commit is contained in:
Jasper St. Pierre 2013-08-11 11:58:32 -04:00
parent e5f4586356
commit b4ebeb05ff

View file

@ -96,7 +96,9 @@ def normalize_ini_file(in_, out):
out.write('\n')
def main():
for name in glob.glob("??????.ini"):
base_path = os.path.dirname(__file__)
pattern = os.path.join(base_path, "../Data/User/GameConfig/??????.ini")
for name in glob.glob(pattern):
in__name = name
out_name = name + '.new'