mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
14 lines
785 B
Plaintext
14 lines
785 B
Plaintext
|
{
|
||
|
"name": "env",
|
||
|
"type": "function",
|
||
|
"description": "Gets an environment variable and returns its content as a string. If the variable is not found, `NULL` will be returned. This is handy to inject system specific configuration like drive letters or path prefixes. Definition of environment variables depends on the operating system, please check with your system administrator or the operating system documentation how this can be set..",
|
||
|
"arguments": [
|
||
|
{"arg":"name","description":"The name of the environment variable which should be retrieved."}
|
||
|
],
|
||
|
"examples": [
|
||
|
{ "expression":"env( 'LANG' )", "returns":"'en_US.UTF-8'"},
|
||
|
{ "expression":"env( 'MY_OWN_PREFIX_VAR' )", "returns":"'Z:'"},
|
||
|
{ "expression":"env( 'I_DO_NOT_EXIST' )", "returns":"NULL"}
|
||
|
]
|
||
|
}
|