Make imports relative

This commit is contained in:
AuroraWright
2025-12-09 03:21:30 +01:00
parent eab954582d
commit af4a32f581
24 changed files with 50 additions and 50 deletions

View File

@@ -9,4 +9,4 @@ 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/" owocr/py_lens/*
sed -i '' "s/import \(.*_pb2\) as \(.*\)/from . import \1 as \2/" owocr/py_lens/*