Compare commits

..

2 Commits

Author SHA1 Message Date
余弦 723c834f12
Merge pull request #20 from cddjr/fix_issue_19 2 years ago
cddjr 116b76e5fc
Preferred /ql/data/config/ to detect if on new Qinglong 2 years ago
  1. 8
      utils.py

8
utils.py

@ -67,12 +67,12 @@ class config_get(object):
def get_config_path(): def get_config_path():
ql_old = "/ql/config/" ql_old = "/ql/config/"
ql_new = "/ql/data/config/" ql_new = "/ql/data/config/"
if os.path.isdir(ql_old): if os.path.isdir(ql_new):
print('成功 当前环境为青龙面板v2.12- 继续执行\n')
return ql_old
elif os.path.isdir(ql_new):
print('成功 当前环境为青龙面板v2.12+ 继续执行\n') print('成功 当前环境为青龙面板v2.12+ 继续执行\n')
return ql_new return ql_new
elif os.path.isdir(ql_old):
print('成功 当前环境为青龙面板v2.12- 继续执行\n')
return ql_old
else: else:
print('失败 请检查环境') print('失败 请检查环境')
exit(0) exit(0)

Loading…
Cancel
Save