Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
magcius committed Aug 11, 2013
1 parent e5f4586 commit b4ebeb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Data/User/GameConfig/CleanFiles.py → Tools/CleanFiles.py
Expand Up @@ -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'

Expand Down

0 comments on commit b4ebeb0

Please sign in to comment.