monkey-patch build_pb.sh to support python3

pull/25/head
Jochen Hoenicke 8 years ago committed by Pavol Rusnak
parent 897d57803a
commit 6b17bf179b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save