1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/buildozer/test.py

13 lines
236 B
Python

import re
f = open("pubspec.json")
print(f)
txt = f.read().replace('\n', '')
print(txt)
print()
mg = re.search(r'versionCode[:"\s]+(\d+)', txt)
print(mg.group(1))
ng = re.search(r'versionName[:"\s]+([\d.]+)', txt)
print(ng.group(1))