Back

GetEnv

JS Py
Hello World

Returns the value of an environment variable defined on the device.

app.GetEnv( name ) → String

Example - Show PATH environment variable

function OnStart()
{
    var envPath = app.GetEnv("PATH");
    app.Alert( envPath );
}
from native import app

def OnStart():
    envPath = app.GetEnv("PATH")
    app.Alert(envPath)
    Copy     Copy All       Run      
String: “PATH” or “...”