meshtastic-firmware/bin/buildinfo.py

10 wiersze
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]}")