try: COCOS_CONSOLE_ROOT
except Exception:
print "COCOS_CONSOLE_ROOT not define. Please define COCOS_CONSOLE_ROOT in your environment!"
sys.exit(1)
command = '%s/cocos compile -p android -s %s -m %s' % (COCOS_CONSOLE_ROOT,app_android_root,build_mode) 原文链接:https://www.f2er.com/cocos2dx/342932.html