Updates project-creator/config-create/create_config.py.

Don't print paths to terminal, it is only useful when debugging.
This commit is contained in:
James Chen 2014-02-14 09:13:52 +08:00
parent c8ec90781c
commit 24c15b6b21
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ class CocosFileList:
self.__bExclude(item) self.__bExclude(item)
): ):
continue continue
print(relativePath) # print(relativePath)
self.fileList.append(relativePath) self.fileList.append(relativePath)
def __bExclude(self, item): def __bExclude(self, item):
@ -140,10 +140,10 @@ if __name__ == '__main__':
cocos_root =os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) cocos_root =os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
cocos_file_path =os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "module", "cocos_files.json")) cocos_file_path =os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "module", "cocos_files.json"))
cocos_file_ingore =os.path.abspath(os.path.join(os.path.dirname(__file__), "config.gitingore")) cocos_file_ingore =os.path.abspath(os.path.join(os.path.dirname(__file__), "config.gitingore"))
print ("begin list files") # print ("begin list files")
cocosObj = CocosFileList() cocosObj = CocosFileList()
cocosObj.readIngoreFile(cocos_file_ingore) cocosObj.readIngoreFile(cocos_file_ingore)
cocosObj.parseFileList(cocos_root) cocosObj.parseFileList(cocos_root)
cocosObj.writeFileList(cocos_file_path) cocosObj.writeFileList(cocos_file_path)
print ("had list files to cocos_file_list.json") # print ("had list files to cocos_file_list.json")