import platform


def os_allow(operating_systems):
    """ A decorator to only allow specific operating systems to run a function """
    def decorator(function):
        def wrapper(*args, **kwargs):
            if platform.system() in operating_systems:
                return function(*args, **kwargs)
        return wrapper
    return decorator