You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/registry/create/_index.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -673,19 +673,19 @@ Make sure to set up a Python virtual environment in the directory your module is
673
673
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`:
674
674
675
675
```sh { class="command-line" data-prompt="$"}
676
-
#!/bin/sh
677
-
cd`dirname $0`
676
+
#!/bin/sh
677
+
cd`dirname $0`
678
678
679
-
# Create a virtual environment to run our code
680
-
VENV_NAME="venv"
681
-
PYTHON="$VENV_NAME/bin/python"
679
+
# Create a virtual environment to run our code
680
+
VENV_NAME="venv"
681
+
PYTHON="$VENV_NAME/bin/python"
682
682
683
-
python3 -m venv $VENV_NAME
684
-
$PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible
683
+
python3 -m venv $VENV_NAME
684
+
$PYTHON -m pip install -r requirements.txt -U # remove -U if viam-sdk should not be upgraded whenever possible
685
685
686
-
# Be sure to use `exec` so that termination signals reach the python process,
687
-
# or handle forwarding termination signals manually
688
-
exec$PYTHON<your-src-dir-if-inside>/main.py $@
686
+
# Be sure to use `exec` so that termination signals reach the python process,
687
+
# or handle forwarding termination signals manually
688
+
exec$PYTHON<your-src-dir-if-inside>/main.py $@
689
689
```
690
690
691
691
To make your shell script executable, run the following command in your terminal:
0 commit comments