52sys Module
52.1Overview
The sys
module provides system-related information. This is a built-in module, so you can use it without being imported.
52.2Module Variable
sys.argv
sys.path
sys.maindir
sys.version
sys.banner
sys.timestamp
sys.build
sys.platform
sys.ps1
sys.ps2
sys.langcode
sys.executable
sys.incdir
sys.libdir
sys.datadir
sys.moddir
sys.localdir
sys.appdir
sys.cfgdir
sys.workdir
52.3Module Function
sys.echo(flag:boolean)
Enables or disables echo-back functionality according to flag.
sys.exit(status?:number)
Terminates the program with a specified status number.
sys.interactive()
Enters to interactive mode.
sys.required_version(major:number, minor:number, patch:number)
Raises an error if the running interpreter doesn't satisfy the required version.