netbox-agent/netbox_agent/misc.py

7 lines
149 B
Python
Raw Normal View History

2019-08-06 15:13:50 +02:00
from shutil import which
2019-08-21 10:40:32 +02:00
2019-08-06 15:13:50 +02:00
def is_tool(name):
'''Check whether `name` is on PATH and marked as executable.'''
return which(name) is not None