axmol/tools/jenkins-scripts/utils/create-template-project.py

20 lines
519 B
Python
Raw Normal View History

2019-11-23 20:27:39 +08:00
import os
languages = ['cpp', 'lua', 'javascript']
base_path = 'tools/project-creator/'
create_project = base_path + 'create_project.py'
template_root = base_path + 'templateTest'
# create project
for item in languages:
ret = os.system('python ' + create_project
+ ' -n ' + 'template' + item
+ ' -k ' + 'com.test.template.' + item
+ ' -l ' + item
+ ' -p ' + template_root)
if(ret > 0):
ret = 1
exit(ret)
exit(0)