@@ -0,0 +1,1102 @@
+# -*- coding: utf-8 -*-%0A%22%22%22ICU (LEGO Island Configuration Utility).%0A%0ACreated 2015 Triangle717%0A%3Chttp://le717.github.io/%3E%0A%0ALicensed under The MIT License%0A%3Chttp://opensource.org/licenses/MIT/%3E%0A%0A%22%22%22%0A%0Aimport os%0Aimport distutils.file_util%0Afrom src.registry.strings import Registry%0A%0A__all__ = (%22ReDirect%22)%0A%0A%0Aclass ReDirect:%0A%0A    def __init__(self, newPath):%0A        self.registry = Registry()%0A        self.curPath = self.registry.readKey(%22savepath%22)%0A        self.newPath = newPath.replace(%22/%22, %22%5C%5C%22)%0A%0A        # Make sure the new path exists%0A        if not os.path.exists(self.newPath):%0A            os.makedirs(self.newPath)%0A%0A        # Update the registry key%0A        self.registry.writeKey(%22savepath%22, self.newPath)%0A%0A        # Move the saves%0A        for f in self.__findSaves():%0A            distutils.file_util.move_file(%0A                os.path.join(self.curPath, f),%0A                os.path.join(self.newPath, f)%0A            )%0A%0A    def __findSaves(self):%0A        for f in os.listdir(self.curPath):%0A            fl = f.lower()%0A            if fl.endswith(%22.gs%22) or fl.endswith(%22.gsi%22):%0A                yield f%0A

Add ReDirect module