Add script to generate Lens bindings
This commit is contained in:
12
generate_lens_bindings.sh
Executable file
12
generate_lens_bindings.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <path_to_proto_files>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PROTO_PATH="$1"
|
||||
|
||||
mkdir -p owocr/py_lens
|
||||
protoc "--proto_path=$PROTO_PATH" --python_out=owocr/py_lens $PROTO_PATH/*.proto
|
||||
sed -i '' "s/import lens_overlay/import owocr.py_lens.lens_overlay/" py_lens/*
|
||||
Reference in New Issue
Block a user