Package roslib :: Module os_detect
[frames] | no frames]

Module os_detect

source code

Library for detecting the current OS, including detecting specific Linux distributions.

The APIs of this library are still very coupled with the rosdep command-line tool.

Classes
  OSOverride
  OSDetectException
  OSBase
This defines the API used for OS detection within the os_detect module for roslib.
  Debian
Detect Debian OS.
  Mandriva
Detect Mandriva OS.
  Ubuntu
This is an implementation of a standard interface for interacting with rosdep.
  Mint
Detect Mint variants of Debian.
  OpenSuse
Detect OpenSuse OS.
  Fedora
Detect Fedora OS.
  Rhel
Detect Redhat OS.
  Osx
Detect OS X
  OsxBrew
Detect OS X
  Arch
Detect Arch Linux.
  Cygwin
Detect Cygwin presence on Windows OS.
  Gentoo
Detect Gentoo OS.
  FreeBSD
Detect FreeBSD OS.
  OSDetect
This class will iterate over registered classes to lookup the active OS and version
Functions
 
lsb_get_os()
Linux: wrapper around lsb_release to get the current OS
source code
 
lsb_get_codename()
Linux: wrapper around lsb_release to get the current OS codename
source code
 
lsb_get_version()
Linux: wrapper around lsb_release to get the current OS version
source code
 
uname_get_machine()
Linux: wrapper around uname to determine if OS is 64-bit
source code
 
port_detect(p)
Detect presence of Macports by running "port installed" command.
source code
Variables
  python3 = False
  __package__ = 'roslib'