Beispiel #1
0
    def set_framework(cls, project, package_name, version):
        cls.show_project_info(project)
        packages_dir = project["packages_dir"]
        if not os.path.isdir(packages_dir):
            print cocos.MultiLanguage.get_string('PACKAGE_NO_PKG_FOUND')
            return

        set_helper = SetFrameworkHelper(project, package_name, version)
        set_helper.run()
Beispiel #2
0
    def set_framework(cls, project, package_name, version):
        print "[PROJECT] > project path: %s" % project["path"]
        print "[PROJECT] > project type: %s" % project["type"]
        packages_dir = project["packages_dir"]
        if not os.path.isdir(packages_dir):
            print "[PROJECT] > Not found any packages."
            return

        set_helper = SetFrameworkHelper(project, package_name, version)
        set_helper.run()