mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复执行 task_before 环境变量加载顺序
This commit is contained in:
@@ -5,17 +5,6 @@ import json
|
||||
import builtins
|
||||
import sys
|
||||
import env
|
||||
from notify import send
|
||||
|
||||
|
||||
class BaseApi:
|
||||
def notify(self, *args, **kwargs):
|
||||
return send(*args, **kwargs)
|
||||
|
||||
|
||||
def init_global():
|
||||
QLAPI = BaseApi()
|
||||
builtins.QLAPI = QLAPI
|
||||
|
||||
|
||||
def try_parse_int(value):
|
||||
@@ -92,7 +81,15 @@ def run():
|
||||
|
||||
|
||||
try:
|
||||
init_global()
|
||||
run()
|
||||
|
||||
from notify import send
|
||||
|
||||
class BaseApi:
|
||||
def notify(self, *args, **kwargs):
|
||||
return send(*args, **kwargs)
|
||||
|
||||
QLAPI = BaseApi()
|
||||
builtins.QLAPI = QLAPI
|
||||
except Exception as error:
|
||||
print(f"run builtin code error: {error}\n")
|
||||
|
||||
Reference in New Issue
Block a user