zhangyong 8 bulan lalu
induk
melakukan
264dee2b32
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      data_channel/sph_crawling_data.py

+ 4 - 2
data_channel/sph_crawling_data.py

@@ -10,6 +10,8 @@ from common import Material, Oss, Common
 from common.sql_help import sqlCollect
 from data_channel.piaoquan import PQ
 from data_channel.shipinhao import SPH
+config = configparser.ConfigParser()
+config.read('./config.ini')
 class SphHistory:
 
     @classmethod
@@ -31,8 +33,8 @@ class SphHistory:
         """
         根据标示和任务标示创建目录
         """
-        # video_path_url = "/Users/tzld/Desktop/video_rewriting/path/sph_crawling/"
-        video_path_url = '/root/video_rewriting/path/sph_crawling/'
+        video_path_url = config['PATHS']['VIDEO_PATH']+"/sph_crawling/"
+        # video_path_url = '/root/video_rewriting/path/sph_crawling/'
         if not os.path.exists(video_path_url):
             os.makedirs(video_path_url)
         return video_path_url