[HOME]

Path : /lib/python2.7/site-packages/sos/policies/
Upload :
Current File : //lib/python2.7/site-packages/sos/policies/osx.py

from sos.policies import Policy
from sos.utilities import shell_out


class OSXPolicy(Policy):

    distro = "Mac OS X"

    @classmethod
    def check(cls):
        try:
            return "Mac OS X" in shell_out("sw_vers")
        except Exception:
            return False

# vim: set et ts=4 sw=4 :