Mojo module
env
Provides functions for working with environment variables.
You can import these APIs from the os
package. For example:
from os import setenv
Functionsβ
- β
getenv
: Returns the value of the given environment variable. - β
setenv
: Changes or adds an environment variable. - β
unsetenv
: Unsets an environment variable.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!