Skip to content

Commit

Permalink
finish sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
andf-viam committed Nov 7, 2023
1 parent 19e7313 commit 6de8ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modular-resources/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Or if you are using a module that requires access to an additional program or li
This configures a module environment variable `PATH` that uses your system's `PATH` (which you can view by running `echo $PATH`) as a base, and adds one additional filesystem path: <file>/home/username/bin</file>.

The notation `${environment.<ENV-VAR-NAME>}"` can be used to access any system environment variable that `viam-server` has access to, where `<ENV-VAR-NAME>` represents a system environment variable, like `PATH`, `USER`, or `PWD`.
For example, you can use `${environment.HOME}"`
For example, you can use `${environment.HOME}"` to access the `HOME` environment variable for the user running `viam-server`.

To configure a modular resource with an environment variable, navigate to the **Config** tab on your robot's page in the Viam app, toggle **Raw JSON** mode, and add the following `env` configuration to the `modules` section:

Expand Down

0 comments on commit 6de8ef2

Please sign in to comment.