mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-21 05:48:23 +00:00
12 lines
300 B
Bash
Executable File
12 lines
300 B
Bash
Executable File
#!/bin/bash
|
|
CURDIR=$(pwd)
|
|
|
|
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
|