青龙面板平台签到函数
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
578 B

import os
def getENv():
ql_new = '/ql/config/env.sh'
config_file = '/ql/config/check.json'
print('尝试检查环境\n')
if os.path.exists(ql_new):
print('成功 当前环境为青龙面板继续执行')
if os.path.exists(config_file):
print('已找到配置文件')
with open(config_file, 'r', encoding='utf8') as f:
return f
else:
print('未找到配置文件\n')
print('请添加/ql/config/check.json')
else:
print('失败 请检查环境')
exit(0)