mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-15 09:32:08 +00:00
try to fix CI again
This commit is contained in:
parent
8e2e4f7e6a
commit
99c8df8e7d
@ -2,10 +2,16 @@
|
|||||||
Import("projenv")
|
Import("projenv")
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
|
prefsLoc = projenv["PROJECT_DIR"] + "/version.properties"
|
||||||
|
print(f"Preferences in {prefsLoc}")
|
||||||
|
try:
|
||||||
config = configparser.RawConfigParser()
|
config = configparser.RawConfigParser()
|
||||||
config.read(projenv["PROJECT_DIR"] + "/version.properties")
|
config.read(prefsLoc)
|
||||||
version = dict(config.items('VERSION'))
|
version = dict(config.items('VERSION'))
|
||||||
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
||||||
|
except:
|
||||||
|
print("Can't read preferences, using 0.0.0")
|
||||||
|
verStr = "0.0.0"
|
||||||
|
|
||||||
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user