multi-user/scripts/get_replication_version.py
2020-10-02 23:29:48 +02:00

5 lines
131 B
Python

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