mirror of https://github.com/axmolengine/axmol.git
modify print message
This commit is contained in:
parent
51a6e4fc35
commit
accdf5635f
|
@ -179,7 +179,8 @@ class CocosProject:
|
||||||
self.step = 0
|
self.step = 0
|
||||||
|
|
||||||
#begin copy engine
|
#begin copy engine
|
||||||
print("###begin copy engine...")
|
print("###begin copy engine")
|
||||||
|
print("waitting copy cocos2d ...")
|
||||||
dstPath = os.path.join(self.context["dst_project_path"],"cocos2d")
|
dstPath = os.path.join(self.context["dst_project_path"],"cocos2d")
|
||||||
for index in range(len(fileList)):
|
for index in range(len(fileList)):
|
||||||
srcfile = os.path.join(self.cocos_root,fileList[index])
|
srcfile = os.path.join(self.cocos_root,fileList[index])
|
||||||
|
@ -187,7 +188,6 @@ class CocosProject:
|
||||||
if not os.path.exists(os.path.dirname(dstfile)):
|
if not os.path.exists(os.path.dirname(dstfile)):
|
||||||
os.makedirs(os.path.dirname(dstfile))
|
os.makedirs(os.path.dirname(dstfile))
|
||||||
|
|
||||||
print (fileList[index])
|
|
||||||
#copy file or folder
|
#copy file or folder
|
||||||
if os.path.exists(srcfile):
|
if os.path.exists(srcfile):
|
||||||
if os.path.isdir(srcfile):
|
if os.path.isdir(srcfile):
|
||||||
|
@ -199,9 +199,9 @@ class CocosProject:
|
||||||
os.remove(dstfile)
|
os.remove(dstfile)
|
||||||
shutil.copyfile(srcfile, dstfile)
|
shutil.copyfile(srcfile, dstfile)
|
||||||
self.step = self.step + 1
|
self.step = self.step + 1
|
||||||
if self.callbackfun and self.step%int(self.totalStep/100) == 0:
|
if self.callbackfun and self.step%int(self.totalStep/50) == 0:
|
||||||
self.callbackfun(self.step,self.totalStep,fileList[index])
|
self.callbackfun(self.step,self.totalStep,fileList[index])
|
||||||
|
print("cocos2d\t\t: Done!")
|
||||||
# call process_proj from each platform's script folder
|
# call process_proj from each platform's script folder
|
||||||
for platform in self.platforms_list:
|
for platform in self.platforms_list:
|
||||||
self.__processPlatformProjects(platform)
|
self.__processPlatformProjects(platform)
|
||||||
|
|
|
@ -66,7 +66,7 @@ class ThreadedTask(threading.Thread):
|
||||||
"""
|
"""
|
||||||
#delete exist project.
|
#delete exist project.
|
||||||
if os.path.exists(os.path.join(self.projectPath, self.projectName)):
|
if os.path.exists(os.path.join(self.projectPath, self.projectName)):
|
||||||
print ("###begin remove... " + self.projectName)
|
print ("###begin remove: " + self.projectName)
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(os.path.join(self.projectPath, self.projectName))
|
shutil.rmtree(os.path.join(self.projectPath, self.projectName))
|
||||||
print ("###remove finish: " + self.projectName)
|
print ("###remove finish: " + self.projectName)
|
||||||
|
|
Loading…
Reference in New Issue