Skip to content

Instantly share code, notes, and snippets.

@JimHaughwout
Created September 5, 2015 21:04
Show Gist options
  • Save JimHaughwout/026500b90f994d9fece8 to your computer and use it in GitHub Desktop.
Save JimHaughwout/026500b90f994d9fece8 to your computer and use it in GitHub Desktop.
Check Install Dependencies
import subprocess
DEPENDENCIES = ['cqlsh', 'ttab', 'kafka']
def check_dependency(program):
"""TODO"""
try:
subprocess.check_output(["which", program])
except:
msg = "%s not installed. Please install" % program
print msg
for program in DEPENDENCIES:
check_dependency(program)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment