multi-user/scripts/get_replication_version.py

5 lines
160 B
Python
Raw Normal View History

2020-10-03 00:56:26 +08:00
import re
2021-05-07 22:56:00 +08:00
init_py = open("multi_user/libs/replication/replication/__init__.py").read()
2020-10-03 00:56:26 +08:00
print(re.search("\d+\.\d+\.\d+\w\d+|\d+\.\d+\.\d+", init_py).group(0))