Browse Source

灾难测试

zhangbo 11 months ago
parent
commit
b7f72a1065
1 changed files with 10 additions and 1 deletions
  1. 10 1
      write_redis/utils_monitor.py

+ 10 - 1
write_redis/utils_monitor.py

@@ -1,8 +1,17 @@
+# -*- coding: utf-8 -*-
+import os
+import sys
+
+root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
+if root_dir not in sys.path:
+    sys.path.append(root_dir)
+    print("******** sys.path ********")
+    print(sys.path)
+
 from my_config import set_config
 from my_utils import send_msg_to_feishu
 from log import Log
 import datetime
-import sys
 config_, _ = set_config()
 log_ = Log()