jack hai 2 meses
pai
achega
a934aca2eb
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      message/weather/get_one_week_weather.py

+ 6 - 3
message/weather/get_one_week_weather.py

@@ -4,6 +4,11 @@
 '''
 '''
 import os
 import os
 import sys
 import sys
+
+sys.path.append(os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo'))
+SUB_PROJECT_NAME = "获取天气预报"
+PROJECT_PATH = os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo')
+
 import time
 import time
 import json
 import json
 from bs4 import BeautifulSoup
 from bs4 import BeautifulSoup
@@ -11,9 +16,7 @@ import httpx
 
 
 from utils.gotify import GotifyNotifier
 from utils.gotify import GotifyNotifier
 
 
-sys.path.append(os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo'))
-SUB_PROJECT_NAME = "获取天气预报"
-PROJECT_PATH = os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo')
+
 
 
 class Weather():
 class Weather():
     def main(self):
     def main(self):