multi-user/scripts/get_addon_version.py
2020-10-03 00:26:44 +02:00

6 lines
182 B
Python

import re
init_py = open("multi_user/__init__.py").read()
version = re.search("\d+, \d+, \d+", init_py).group(0)
digits = version.split(',')
print('.'.join(digits).replace(" ",""))