summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-08-11 11:58:32 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-08-11 11:58:54 -0400
commitb4ebeb05ff61dc6a865ea332d62a605f4079ff0a (patch)
treebf2e07c24c0b00fdb4d80fa4e9fb6fcc376f5166
parente5f4586356cc6182d4dfa14cc3f45f69df8d4956 (diff)
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.
-rw-r--r--Tools/CleanFiles.py (renamed from Data/User/GameConfig/CleanFiles.py)4
1 files changed, 3 insertions, 1 deletions
diff --git a/Data/User/GameConfig/CleanFiles.py b/Tools/CleanFiles.py
index fa4532396d..3ef6f5ace2 100644
--- a/Data/User/GameConfig/CleanFiles.py
+++ b/Tools/CleanFiles.py
@@ -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'