From b4ebeb05ff61dc6a865ea332d62a605f4079ff0a Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 11 Aug 2013 11:58:32 -0400 Subject: [PATCH] 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. --- {Data/User/GameConfig => Tools}/CleanFiles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename {Data/User/GameConfig => Tools}/CleanFiles.py (94%) diff --git a/Data/User/GameConfig/CleanFiles.py b/Tools/CleanFiles.py similarity index 94% rename from Data/User/GameConfig/CleanFiles.py rename to 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'