Browse Source

增加写入title tag的任务

zhangbo 11 months ago
parent
commit
ee56430524
1 changed files with 7 additions and 0 deletions
  1. 7 0
      zhangbo/alg_recsys_recall_01_vid2titletags_redis.py

+ 7 - 0
zhangbo/alg_recsys_recall_01_vid2titletags_redis.py

@@ -10,6 +10,13 @@ from datetime import datetime
 from queue import Queue
 from tqdm import tqdm
 import sys
+import os
+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)
+
 
 config_, _ = set_config()
 log_ = Log()