multi-user/scripts/get_replication_version.py

5 lines
160 B
Python
Raw Permalink Normal View History

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