From 9123af1685fe2e36021944fbaf98c2be2340a736 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 25 Jul 2022 01:29:15 +0800 Subject: [PATCH] ok --- run_tags_add.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_tags_add.py b/run_tags_add.py index a82a6f2..bcf0ed0 100644 --- a/run_tags_add.py +++ b/run_tags_add.py @@ -78,8 +78,9 @@ def main(): print(cmd) os.system(cmd) - 替换文本内容 __version__ = '1.2.5' - 打开文件 pyefun/__init__.py + # 替换文本内容 __version__ = '1.2.5' + # 打开文件 pyefun/__init__.py + with open("pyefun/__init__.py", "r") as f: lines = f.readlines() # 找到版本号的行