Update index.py

This commit is contained in:
Mr Chen 2024-11-29 18:14:02 +08:00
parent 7b5d9bb3c1
commit d078b285a2
1 changed files with 4 additions and 4 deletions

View File

@ -564,11 +564,11 @@ def installPreInspection():
if __name__ == "__main__":
version = '1.27.1'
version_pl = getServerDir() + "/version.pl"
if not os.path.exists(version_pl):
print('error')
exit(-1)
version = mw.readFile(version_pl)
if os.path.exists(version_pl):
version = mw.readFile(version_pl)
func = sys.argv[1]