Hack to make python compile again

This commit is contained in:
Ben Meadors
2023-01-29 15:19:03 -06:00
parent 75cdc5a36b
commit 9ff575c388
19 changed files with 339 additions and 291 deletions

View File

@@ -1,6 +1,10 @@
#!/bin/bash
./nanopb-0.4.6/generator-bin/protoc -I=protobufs --python_out meshtastic `ls protobufs/*.proto`
#Uncomment to run hack
#gsed -i 's/import "\//import ".\//g' ./protobufs/meshtastic/*
#gsed -i 's/package meshtastic;//g' ./protobufs/meshtastic/*
./nanopb-0.4.6/generator-bin/protoc -I=protobufs --python_out ./ ./protobufs/meshtastic/*.proto
# workaround for import bug in protoc https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-690618628