feat: automatic image version

This commit is contained in:
Swann
2020-10-03 00:26:44 +02:00
parent 28a265be68
commit 83aa9b57ec
3 changed files with 16 additions and 17 deletions

View File

@ -0,0 +1,6 @@
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(" ",""))