Documents

SYS (SYSTEM)
sys.name

Returns Windows name.

Syntax

sys.name
sys.name

Returns Windows name.

Syntax

sys.name
sys.type

Returns system architecture.

Syntax

sys.type
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
sys.datetime.date
sys.datetime.date_day
sys.datetime.date_dayofweek
sys.datetime.date_month
sys.datetime.date_y
sys.datetime.date_year
sys.datetime.date_yy
sys.datetime.short
sys.datetime.time
sys.datetime.time_hour
sys.datetime.time_milliseconds
sys.datetime.time_min
sys.datetime.time_minute
sys.datetime.time_ms
sys.datetime.time_pm
sys.datetime.time_second
Windows paths
sys.appdata
sys.bin
sys.bin32
sys.bin64
sys.directory (sys.dir)
sys.path
sys.prog
sys.prog32
sys.programdata
sys.random
sys.refresh
sys.root
sys.temp
sys.templates
sys.users
sys.wow
sys.sleep(milliseconds)

Suspends the execution of the current thread until the time-out interval elapses.

Syntax

sys.sleep(1000)

sys.toggleext
sys.togglehidden
sys.RestartExplorer

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