arch
os::archTarget architecture (e.g. "x86_64", "aarch64", "arm").
OS / arch detection, environment variables, and process info.
archos::archTarget architecture (e.g. "x86_64", "aarch64", "arm").
dll_extensionos::dll_extensionDynamic-library extension without the leading dot ("so", "dylib", "dll").
exe_extensionos::exe_extensionExecutable extension without the leading dot ("" on Unix, "exe" on Windows).
familyos::familyOS family — "unix" or "windows".
nameos::nameTarget OS as reported by std::env::consts::OS (e.g. "linux", "macos", "windows").
pointer_widthos::pointer_widthPointer width in bits (32 or 64).
argsos::args() -> list<string>Script-level arguments (host-injected via Engine::set_args; default []).
cwdos::cwd() -> stringCurrent working directory.
env_varos::env_var(name [, default]) -> stringRead an env var. Errors if missing; the optional 2nd arg is returned instead.
env_varsos::env_vars() -> dictSnapshot of all env vars as a dict<string, string>.
has_env_varos::has_env_var(name) -> boolTrue if the named env var is set in the current process.
pidos::pid() -> intCurrent process id.
temp_diros::temp_dir() -> stringPlatform temporary directory.