From 45d72bd51b45333d44f44870dd9fd452bd233950 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 10 Dec 2020 12:44:35 +0800 Subject: [PATCH] fix CI build - make projectdir relative --- bin/platformio-custom.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/platformio-custom.py b/bin/platformio-custom.py index 607906972..b0749ea26 100644 --- a/bin/platformio-custom.py +++ b/bin/platformio-custom.py @@ -1,16 +1,14 @@ + +Import("projenv") + import configparser - config = configparser.RawConfigParser() -config.read('version.properties') - +config.read(projenv["PROJECT_DIR"] + "/version.properties") version = dict(config.items('VERSION')) - verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"]) print(f"Using meshtastic platform-custom.py, firmare version {verStr}") -Import("env", "projenv") - # General options that are passed to the C and C++ compilers projenv.Append(CCFLAGS=[ f"-DAPP_VERSION={verStr}"