cleanup protobuf mess
parent
b7a2800b97
commit
d3df313442
@ -1,3 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd ./trezor-common/protob
|
CURDIR=$(pwd)
|
||||||
protoc --python_out=../../trezorlib/ -I/usr/include -I. -I. trezor.proto
|
|
||||||
|
cd $CURDIR/../trezor-common/protob
|
||||||
|
|
||||||
|
for i in messages types ; do
|
||||||
|
protoc --python_out=$CURDIR/trezorlib/ -I/usr/include -I. $i.proto
|
||||||
|
done
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd `dirname $0`/../../trezor-common/protob
|
|
||||||
|
|
||||||
protoc --python_out=../../trezor-emu/trezor/ -I/usr/include -I. types.proto
|
|
||||||
protoc --python_out=../../trezor-emu/trezor/ -I/usr/include -I. messages.proto
|
|
@ -1,6 +1,6 @@
|
|||||||
try:
|
try:
|
||||||
import trezor_pb2 as proto
|
import messages_pb2 as proto
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Source trezor_pb2.py not found. Make sure python-protobuf is installed and run build_pb.sh to generate it."
|
print "Source messages_pb2.py or types_pb2.py not found. Make sure python-protobuf is installed and run build_pb.sh to generate it."
|
||||||
import sys
|
import sys
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue