()
| 14 | logger.addHandler(logging.StreamHandler()) |
| 15 | |
| 16 | def load_send(): |
| 17 | global send, mg |
| 18 | cur_path = path.abspath(path.dirname(__file__)) |
| 19 | if path.exists(cur_path + "/notify.py"): |
| 20 | try: |
| 21 | from notify import send |
| 22 | print("加载通知服务成功!") |
| 23 | except: |
| 24 | send = False |
| 25 | print("加载通知服务失败~") |
| 26 | else: |
| 27 | send = False |
| 28 | print("加载通知服务失败~") |
| 29 | |
| 30 | load_send() |
| 31 |