Documents

SYS (SYSTEM)
sys.name

Returns Windows name.

Syntax

sys.name
sys.type

Returns system architecture.

Syntax

sys.type == 64
sys.type == 32
sys.is64

Returns if system architecture is x64.

Syntax

sys.is64
sys.dark

Check if dark mode is enabled.

Syntax

sys.dark
sys.var

Retrieves the value of an environment variable.

Syntax

sys.var('WINDIR')
sys.version (sys.ver)

Windows version.

Syntax

sys.version
sys.version.build
sys.version.major
sys.version.minor
sys.version.name
sys.version.type
sys.datetime

Date and time format

Syntax

sys.datetime.ms
sys.datetime.milliseconds
sys.datetime.second
sys.datetime.min
sys.datetime.minute
sys.datetime.hour
sys.datetime.pm
sys.datetime.day
sys.datetime.dayofweek
sys.datetime.month
sys.datetime.y
sys.datetime.year
sys.datetime.yy
sys.datetime.time
sys.datetime.date
sys.datetime.short
Windows paths
sys.appdata
sys.bin
sys.bin32
sys.bin64
sys.directory (sys.dir)
sys.path
sys.prog
sys.prog32
sys.programdata
sys.root
sys.temp
sys.templates
sys.users
sys.wow
sys.is_primary_monitor

Returns true if the current monitor is the primary

Syntax

sys.is_primary_monitor

This page is open source. Noticed a typo? Or something unclear?
Improve this page on GitHub