mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
15 lines
495 B
Python
15 lines
495 B
Python
# use like
|
|
# make clean; make ARGS=-DEMSESP_STANDALONE_DUMP; echo "test dump" | ./emsesp | python3 ./scripts/dump_entities.py
|
|
|
|
import fileinput
|
|
with fileinput.input() as f_input:
|
|
inRecordingMode = False
|
|
for line in f_input:
|
|
if not inRecordingMode:
|
|
if line.startswith('---- CSV START ----'):
|
|
inRecordingMode = True
|
|
elif line.startswith('---- CSV END ----'):
|
|
inRecordingMode = False
|
|
else:
|
|
print(line, end="")
|