Stash Software API  2.0.0
Static Public Member Functions | List of all members
sCore.platformLib.Platform Class Reference

[ CLASS ] - Platform related class. More...

Inheritance diagram for sCore.platformLib.Platform:

Static Public Member Functions

def isWindows ()
 Check whether current platform is Windows. More...
 
def isWindows10 ()
 Check whether current platform is Windows 10. More...
 
def isLinux ()
 Check whether current platform is Linux. More...
 
def isDarwin ()
 Check whether current platform is OSX. More...
 
def system ()
 Get the name of current platform. More...
 
def getOthers ()
 Get all platform names but the current one. More...
 

Detailed Description

[ CLASS ] - Platform related class.

Member Function Documentation

◆ isWindows()

def sCore.platformLib.Platform.isWindows ( )
static

Check whether current platform is Windows.

Exceptions
N/A
Returns
bool - Whether current platform is Windows.

◆ isWindows10()

def sCore.platformLib.Platform.isWindows10 ( )
static

Check whether current platform is Windows 10.

Exceptions
N/A
Returns
bool - Whether current platform is Windows 10.

◆ isLinux()

def sCore.platformLib.Platform.isLinux ( )
static

Check whether current platform is Linux.

Exceptions
N/A
Returns
bool - Whether current platform is Linux.

◆ isDarwin()

def sCore.platformLib.Platform.isDarwin ( )
static

Check whether current platform is OSX.

Exceptions
N/A
Returns
bool - Whether current platform is OSX.

◆ system()

def sCore.platformLib.Platform.system ( )
static

Get the name of current platform.

Available names are listed in sCore.platformLib.Name class.

Exceptions
N/A
Returns
str - Platform name, one of the following, Darwin, Linux, Windows.

◆ getOthers()

def sCore.platformLib.Platform.getOthers ( )
static

Get all platform names but the current one.

Exceptions
N/A
Returns
list of str - Platform names.

The documentation for this class was generated from the following file: