1234567891011121314151617181920212223242526272829 |
- # -*- coding:utf-8 -*-
- import sys
- import os
- import merge_ad_pkg
- def package():
- if len(sys.argv) < 2:
- print("参数数量不正确")
- exit(1)
- config = sys.argv[1]
- if not os.path.exists(config):
- print("配置文件不存在")
- exit(1)
- ret = merge_ad_pkg.startMerge(config)
- if not ret:
- print("切包失败,请联系开发人员")
- exit(1)
- print("成功")
- exit(0)
- pass
- if __name__ == "__main__":
- package()
|