netbox-agent/netbox_agent/misc.py

7 lines
149 B
Python
Raw Normal View History

from shutil import which
def is_tool(name):
'''Check whether `name` is on PATH and marked as executable.'''
return which(name) is not None