The options of "LensStudio:Subprocess".spawn or "LensStudio:Subprocess".spawnSync. env, can be specified as a {PATH: myPath, PWD: myPwd} or a JS object. The PATH and PWD fields will override the default value in your environment has when the subprocess is spawned. You can access the default environment variables from "LensStudio:App", where its a constant value that you can retrieve just like .version, using .env.

interface SpawnOptions {
    cwd: Path;
    env: object;
    timeout: number;
}

Properties

Properties

cwd: Path
env: object
timeout: number