def __virtual__():
    if utils.which('svn') is None:
        return (False,
                'The svn execution module cannot be loaded: svn unavailable.')
    else:
        return True
Only load if svn is installed
dataset/ETHPy150Open saltstack/salt/salt/modules/svn.py/__virtual__