Quirrel4.41.0

system

Environment variables, shell commands and file management.

from "system" import ...

Functions

getenvgetenv(name: string): string|nullReturns the value of the environment variable or null
removeremove(path: string)Deletes the file at the given path, throws error in case of fail
renamerename(old: string, new: string)Renames the file from old to new path, throws error in case of fail
setenvsetenv(name: string, value: string)Sets the environment variable to the given value
systemsystem(cmd: string): intExecutes a shell command and returns its exit code