This commit is contained in:
Solvik Blum 2019-08-06 15:13:50 +02:00
parent 823ecc6bf9
commit 6a9593f33d
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
2 changed files with 21 additions and 33 deletions

5
netbox_agent/misc.py Normal file
View file

@ -0,0 +1,5 @@
from shutil import which
def is_tool(name):
'''Check whether `name` is on PATH and marked as executable.'''
return which(name) is not None