multi-user/scripts/get_addon_version.py

6 lines
182 B
Python
Raw Permalink Normal View History

2020-10-03 06:26:44 +08:00
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(" ",""))