def grep_stdout(func):

    def wrap(*args):
        """
        Wraps a function.

        :param args: Bunch of Arguments.
        """
        old_out = sys.stdout
        old_err = sys.stderr
        sys.stdout = StringIO.StringIO()
        sys.stderr = StringIO.StringIO()
        func(*args)
        err = sys.stderr.getvalue()
        out = sys.stdout.getvalue().strip().split('\n')
        sys.stdout.close()
        sys.stderr.close()
        sys.stdout = old_out
        sys.stderr = old_err
        return out, err
    return wrap
Returns the sensors slave path
dataset/ETHPy150Open tmetsch/suricate/suricate/analytics/wrapper.py/grep_stdout--crossover with--dataset/ETHPy150Open timofurrer/w1thermsensor/w1thermsensor/core.py/W1ThermSensor.exists