lightly init

This commit is contained in:
hillerliao
2022-08-09 18:20:57 +08:00
parent 0001db454e
commit 6608cf1c2b
3 changed files with 41 additions and 35 deletions

20
main.py
View File

@@ -1,10 +1,10 @@
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
if os.path.exists(dotenv_path):
load_dotenv(dotenv_path)
from rsshub import create_app
app = create_app('production')
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
if os.path.exists(dotenv_path):
load_dotenv(dotenv_path)
from rsshub import create_app
app = create_app('production')