Merge pull request #3495 from shinriyo/shinriyo

Python2.x 3.x runnable
This commit is contained in:
minggo 2013-08-27 21:06:33 -07:00
commit e41eaf7355
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ def checkParams():
context["src_project_name"] = "HelloJavascript" context["src_project_name"] = "HelloJavascript"
context["src_package_name"] = "org.cocos2dx.hellojavascript" context["src_package_name"] = "org.cocos2dx.hellojavascript"
context["src_project_path"] = os.path.join(template_dir, "multi-platform-js") context["src_project_path"] = os.path.join(template_dir, "multi-platform-js")
else:
print ("Your language parameter doesn\'t exist." \
"Check correct language option\'s parameter")
sys.exit()
platforms_list = PLATFORMS.get(context["language"], []) platforms_list = PLATFORMS.get(context["language"], [])
return context, platforms_list return context, platforms_list
# end of checkParams(context) function # end of checkParams(context) function