main.py 365 B

1234567891011121314151617
  1. from configure import configure
  2. import os
  3. import logging
  4. env_dict = os.environ
  5. hblog_conf = env_dict.get("hblog_conf")
  6. if hblog_conf is None:
  7. logging.info("Configure file ./etc/conf.json")
  8. configure("./etc/conf.json")
  9. else:
  10. logging.info(f"Configure file {hblog_conf}")
  11. configure(hblog_conf)
  12. from app import HTalkFlask
  13. app = HTalkFlask(__name__)