multi-user/scripts/get_replication_version.py
2021-05-07 16:56:00 +02:00

5 lines
160 B
Python

import re
init_py = open("multi_user/libs/replication/replication/__init__.py").read()
print(re.search("\d+\.\d+\.\d+\w\d+|\d+\.\d+\.\d+", init_py).group(0))