firmware/bin/buildinfo.py
2021-05-09 10:57:12 +08:00

10 lines
181 B
Python
Executable File

#!/usr/bin/env python3
import configparser
import sys
from readprops import readProps
verObj = readProps('version.properties')
propName = sys.argv[1]
print(f"{verObj[propName]}")