Files
python/bin/regen-protos.sh
Kevin Hester 401de19bf7 WIP add gpiowr:
bin/run.sh --dest \!2462abf84098 --gpiowr 4 1
2020-12-07 12:42:06 +08:00

8 lines
246 B
Bash
Executable File

#!/bin/bash
protoc -I=proto --python_out meshtastic `ls proto/*.proto`
# workaround for import bug in protoc https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-690618628
sed -i -E 's/^import.*_pb2/from . \0/' meshtastic/*.py