__init__.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. # You can obtain one at http://mozilla.org/MPL/2.0/.
  4. """
  5. interface to transform introspected system information to a format palatable to
  6. Mozilla
  7. Module variables:
  8. .. attribute:: bits
  9. 32 or 64
  10. .. attribute:: isBsd
  11. Returns ``True`` if the operating system is BSD
  12. .. attribute:: isLinux
  13. Returns ``True`` if the operating system is Linux
  14. .. attribute:: isMac
  15. Returns ``True`` if the operating system is Mac
  16. .. attribute:: isWin
  17. Returns ``True`` if the operating system is Windows
  18. .. attribute:: os
  19. Operating system [``'win'``, ``'mac'``, ``'linux'``, ...]
  20. .. attribute:: processor
  21. Processor architecture [``'x86'``, ``'x86_64'``, ``'ppc'``, ...]
  22. .. attribute:: version
  23. Operating system version string. For windows, the service pack information is also included
  24. .. attribute:: info
  25. Returns information identifying the current system.
  26. * :attr:`bits`
  27. * :attr:`os`
  28. * :attr:`processor`
  29. * :attr:`version`
  30. """
  31. import mozinfo
  32. from mozinfo import *
  33. __all__ = mozinfo.__all__