Skip to content

Commit

Permalink
quote path (arendst#18975)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggottwald authored and RaphDaMan committed Apr 26, 2024
1 parent b1ede2f commit 5d53c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pio-tools/metrics-firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def firm_metrics(source, target, env):
if env["PIOPLATFORM"] == "espressif32":
import tasmota_metrics
env.Execute("$PYTHONEXE -m tasmota_metrics " + str(tasmotapiolib.get_source_map_path(env).resolve()))
env.Execute("$PYTHONEXE -m tasmota_metrics \"" + str(tasmotapiolib.get_source_map_path(env).resolve()) + "\"")
elif env["PIOPLATFORM"] == "espressif8266":
map_file = join(env.subst("$BUILD_DIR")) + os.sep + "firmware.map"
with open(map_file,'r') as f:
Expand All @@ -22,4 +22,4 @@ def firm_metrics(source, target, env):
print("Used static IRAM:",used_bytes,"bytes (",remaining_bytes,"remain,",percentage,"% used)")


env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin",firm_metrics)
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin",firm_metrics)

0 comments on commit 5d53c5b

Please sign in to comment.