# -*- coding: UTF-8 -*- import os import sys import shutil cleanPathBase = "./pandora_cli_proj" clientFolderList = ["/pandora/Assets", "/pandora/Packages","/pandora/ProjectSettings"] # def CleanFolder(): for folder in clientFolderList: path = cleanPathBase + folder if os.path.exists(path): command = "svn cleanup " + path + " --remove-unversioned" print(command) ret = os.system(command) if ret != 0: print("cleanup CleanFolder error!") exit(1) if __name__ == '__main__': CleanFolder() command = "svn cleanup ./pandora_share_proj --remove-unversioned" print(command) ret = os.system(command) if ret != 0: print("cleanup shared error!") exit(1) print("CleanFolder Done!") exit(0)