diff --git a/docs/registry/create/_index.md b/docs/registry/create/_index.md index ef56c9ccf4..a13e214f71 100644 --- a/docs/registry/create/_index.md +++ b/docs/registry/create/_index.md @@ -673,19 +673,19 @@ Make sure to set up a Python virtual environment in the directory your module is 2. Add a shell script that creates a new virtual environment, installs the dependencies listed in `requirements.txt`, and runs the module entry point file `main.py`: ```sh { class="command-line" data-prompt="$"} - #!/bin/sh - cd `dirname $0` + #!/bin/sh + cd `dirname $0` - # Create a virtual environment to run our code - VENV_NAME="venv" - PYTHON="$VENV_NAME/bin/python" + # Create a virtual environment to run our code + VENV_NAME="venv" + PYTHON="$VENV_NAME/bin/python" - python3 -m venv $VENV_NAME - $PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible + python3 -m venv $VENV_NAME + $PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible - # Be sure to use `exec` so that termination signals reach the python process, - # or handle forwarding termination signals manually - exec $PYTHON /main.py $@ + # Be sure to use `exec` so that termination signals reach the python process, + # or handle forwarding termination signals manually + exec $PYTHON /main.py $@ ``` To make your shell script executable, run the following command in your terminal: