mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-02 02:41:28 +00:00
monkey-patch build_pb.sh to support python3
This commit is contained in:
parent
897d57803a
commit
6b17bf179b
@ -6,3 +6,6 @@ cd $CURDIR/../trezor-common/protob
|
||||
for i in messages types ; do
|
||||
protoc --python_out=$CURDIR/trezorlib/ -I/usr/include -I. $i.proto
|
||||
done
|
||||
|
||||
# hack to make output python 3 compatible
|
||||
sed -i 's/^import types_pb2/from . import types_pb2/g' $CURDIR/trezorlib/messages_pb2.py
|
||||
|
Loading…
Reference in New Issue
Block a user