Package moap :: Package util :: Module distro
[hide private]
[frames] | no frames]

Module distro

source code

Classes [hide private]
  Distro
Functions [hide private]
 
getSysName()
Get the system name.
source code
 
getMachine()
Get the machine architecture.
source code
 
getDistroFromRelease()
Decide on the distro based on the presence of a distro-specific release file.
source code
Function Details [hide private]

getSysName()

source code 

Get the system name. Typically the first item in the os.uname tuple.

getMachine()

source code 

Get the machine architecture. Typically the fifth item in os.uname.

getDistroFromRelease()

source code 

Decide on the distro based on the presence of a distro-specific release file.

rtype: Distro or None.