summaryrefslogtreecommitdiffstats
path: root/testing/mozbase/mozinfo/mozinfo/__init__.py
blob: 7d0483cb57a07cb51921108b60aa0b7bf8a8c193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# flake8: noqa
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

"""
interface to transform introspected system information to a format palatable to
Mozilla

Module variables:

.. attribute:: bits

   32 or 64

.. attribute:: isBsd

   Returns ``True`` if the operating system is BSD

.. attribute:: isLinux

   Returns ``True`` if the operating system is Linux

.. attribute:: isMac

   Returns ``True`` if the operating system is Mac

.. attribute:: isWin

   Returns ``True`` if the operating system is Windows

.. attribute:: os

   Operating system [``'win'``, ``'mac'``, ``'linux'``, ...]

.. attribute:: processor

   Processor architecture [``'x86'``, ``'x86_64'``, ``'ppc'``, ...]

.. attribute:: version

   Operating system version string. For windows, the service pack information is also included

.. attribute:: info

   Returns information identifying the current system.

   * :attr:`bits`
   * :attr:`os`
   * :attr:`processor`
   * :attr:`version`

"""

from . import mozinfo
from .mozinfo import *

__all__ = mozinfo.__all__