From 7658a01a618878ed1b093728184cfff4a5545171 Mon Sep 17 00:00:00 2001 From: Wesley Maa Date: Mon, 25 Nov 2024 12:45:45 -0800 Subject: [PATCH] rename packages --- pykos/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pykos/Makefile b/pykos/Makefile index f47ff64..d5c35f9 100644 --- a/pykos/Makefile +++ b/pykos/Makefile @@ -38,6 +38,10 @@ generate-proto: mv kos/* kos_protos/ rm -rf kos touch kos_protos/__init__.py + + # Fix imports in all generated files + find kos_protos -type f -name "*.py" -exec sed -i '' 's/from kos/from kos_protos/g' {} + + find kos_protos -type f -name "*.py" -exec sed -i '' 's/import kos/import kos_protos/g' {} + .PHONY: generate-proto