sys module

Core framework Console Desktop

The sys module provides access to system-specific parameters and functions

Property Description Access Type
sys.atexit Get/set the function to call at program exit readwrite function
sys.clipboard Get/set the clipboard content readwrite table
sys.currentdir Get/set current working directory readwrite string
sys.env Access the environnement variables table readonly table
sys.error Get the last Windows error message readonly string
sys.idleThreshold Get/set the scheduler idle interval readwrite ae81ff
sys.language Get the full localized name of the current locale readonly string
sys.locale Get/set the current locale readwrite string
sys.tasks Get all active Tasks readonly table
Functions Description Return value
sys.beep() Plays a beep sound -
sys.clock() Get elapsed time from high performance counter number
sys.cmd() Execute an operating system command boolean
sys.exit() Exits the program -
sys.fsentry() Returns a filesystem entry
sys.halt() Logoff, shutdown or reboot the computer -
sys.registry.delete() Deletes a value from the Windows registry boolean
sys.registry.read() Read a value from the Windows registry string
sys.registry.write() Write a value in the Windows registry boolean
sys.TaskFactory() Create a Task factory function
sys.tempdir() Generate a temporary Directory object in Windows temporary folder
sys.tempfile() Generate a temporary File object in Windows temporary folder
Object Description
Buffer Object that represent a block of memory
COM Object that represent a Windows COM Object
Datetime Object representation of a moment in time
Directory Object for creating, moving, and enumerating through folders
File Object representation of a single file
Pipe Manage redirection with another process, for standard input/output
Task Object that represent an asynchronous task