main_ad_pkg.py 489 B

1234567891011121314151617181920212223242526272829
  1. # -*- coding:utf-8 -*-
  2. import sys
  3. import os
  4. import merge_ad_pkg
  5. def package():
  6. if len(sys.argv) < 2:
  7. print("参数数量不正确")
  8. exit(1)
  9. config = sys.argv[1]
  10. if not os.path.exists(config):
  11. print("配置文件不存在")
  12. exit(1)
  13. ret = merge_ad_pkg.startMerge(config)
  14. if not ret:
  15. print("切包失败,请联系开发人员")
  16. exit(1)
  17. print("成功")
  18. exit(0)
  19. pass
  20. if __name__ == "__main__":
  21. package()