Commit 047839b8 authored by xiabo's avatar xiabo
Browse files

适配版本号

parent add54aa4
...@@ -83,7 +83,7 @@ def get_version_add(sha: Optional[str] = None) -> str: ...@@ -83,7 +83,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
lines=[] lines=[]
with open(add_version_path, 'r',encoding='utf-8') as file: with open(add_version_path, 'r',encoding='utf-8') as file:
lines = file.readlines() lines = file.readlines()
lines[1] = "__version__='2.0.0+{}'\n".format(version) lines[2] = "__version__='2.0.0+{}'\n".format(version)
with open(add_version_path, encoding="utf-8",mode="w") as file: with open(add_version_path, encoding="utf-8",mode="w") as file:
file.writelines(lines) file.writelines(lines)
file.close() file.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment