diff --git a/generate_lens_bindings.sh b/generate_lens_bindings.sh index 2b75534..482310d 100755 --- a/generate_lens_bindings.sh +++ b/generate_lens_bindings.sh @@ -7,6 +7,7 @@ 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/* \ No newline at end of file +mkdir tmp +protoc "--proto_path=$PROTO_PATH" --python_betterproto_out=tmp $PROTO_PATH/*.proto +mv tmp/lens/__init__.py owocr/lens_betterproto.py +rm -rf tmp \ No newline at end of file