meshtastic-firmware/bin/buildinfo.py

10 wiersze
181 B
Python
Czysty Zwykły widok Historia

#!/usr/bin/env python3
import configparser
2021-05-09 02:56:28 +00:00
import sys
2021-04-16 02:59:46 +00:00
from readprops import readProps
2021-05-03 01:50:06 +00:00
verObj = readProps('version.properties')
2021-05-09 02:56:28 +00:00
propName = sys.argv[1]
print(f"{verObj[propName]}")