Browse Source

Merge pull request #20 from cddjr/fix_issue_19

修复了在新版青龙上不能正确获取路径的问题
master
余弦 2 years ago committed by GitHub
parent
commit
723c834f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      utils.py

8
utils.py

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

Loading…
Cancel
Save