zivid / zivid-python

Official Python package for Zivid 3D cameras
BSD 3-Clause "New" or "Revised" License
40 stars 14 forks source link

Fix `docker_generate_datamodels.sh` #228

Closed eskaur closed 1 year ago

eskaur commented 1 year ago

The script docker_generate_datamodels.sh has been broken since we started using virtual envs in the CI scripts a few weeks ago. Since build.sh installs zivid in a venv, generate_datamodels.sh would fail to find the package since it was not running in the same venv. This commit fixes this by making generate_datamodels.sh activate the CI venv set up by the previous steps. We only do this if there is no venv currently activated, because we still want developers to be able to run generate_datamodels.sh directly with their own venv.