소스 검색

路径修改

luojiehua 4 년 전
부모
커밋
7113af4067
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      jobs/exportJobs.py

+ 6 - 2
jobs/exportJobs.py

@@ -1,7 +1,11 @@
 #coding:utf8
 
-from utils.Utils import sendEmail,getCurrent_date
+import sys
 import os
+sys.path.append(os.path.join(os.path.dirname(__file__),".."))
+
+from utils.Utils import sendEmail,getCurrent_date
+
 import datetime
 import time
 from export.exportDocument import exportDocument_medicine,list_df_columns
@@ -29,7 +33,7 @@ def export_medicine_friday():
 
 def job_medicine_friday():
     _scheduler = BlockingScheduler()
-    _scheduler.add_job(export_medicine_friday(),"cron",day_of_week='fri',hour=18)
+    _scheduler.add_job(export_medicine_friday,"cron",day_of_week='fri',hour=18)
     _scheduler.start()