template_update.py 465 B

1234567891011121314151617181920
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. import json
  5. from pathlib import Path
  6. from module.config.config_model import ConfigModel
  7. from module.config.config import Config
  8. from module.logger import logger
  9. if __name__ == "__main__":
  10. # ConfigModel对象并更新保存
  11. config = ConfigModel()
  12. config_path = Path("./config/template.json")
  13. config.write_json("template", config.dict())