From fce887d10be6e7b2a23ef91d9a51995d39b8afe0 Mon Sep 17 00:00:00 2001 From: Mit4el Date: Tue, 7 Jan 2025 13:54:34 +0300 Subject: [PATCH] test fix path script --- tools/patch8266_16m.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patch8266_16m.py b/tools/patch8266_16m.py index 8edd570a..9babec92 100644 --- a/tools/patch8266_16m.py +++ b/tools/patch8266_16m.py @@ -9,10 +9,10 @@ Import("env") if platform == "linux" or platform == "linux2": # linux '~/.platformio/platforms/espressif8266@4.0.1/builder/main.py' - mainPyPath = env.get("PLATFORMIO_PLATFORMS_DIR") + '/espressif8266@4.0.1/builder/main.py' + mainPyPath = env.subst("$PLATFORMIO_PLATFORMS_DIR") + '/espressif8266@4.0.1/builder/main.py' else: # windows os.environ['USERPROFILE'] + '\\.platformio\\platforms\\espressif8266@4.0.1\\builder\\main.py' - mainPyPath = env.get("PLATFORMIO_PLATFORMS_DIR") + '\\espressif8266@4.0.1\\builder\\main.py' + mainPyPath = env.subst("$PLATFORMIO_PLATFORMS_DIR") + '\\espressif8266@4.0.1\\builder\\main.py' print(mainPyPath)