"""
The files that came down from K'stuhl had botched file names.  This
script fixes those names.  It shouldn't harm if it's run multiple times
as long as no botched names suddenly become legal.

This should be run out of inputs/lswscans.

UPDATE, 2013: The paths are now wrong and this does not work as advertized.
Since renamings have been rare, I don't bother maintaining this file.

The name_fixes.txt is still right, though.
"""

from gavo.helpers import filestuff

if __name__=="__main__":
	renamer = filestuff.FileRenamer.loadFromFile(open("res/name_fixes.txt"),
		showOnly=True)
	renamer.renameInPaths([
		"/LSWscanData/Bruceplatten",
		"/LSWscanData/Schmidtplatten",])
