Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Created June 15, 2010 23:18
Show Gist options
  • Save jrabbit/439894 to your computer and use it in GitHub Desktop.
Save jrabbit/439894 to your computer and use it in GitHub Desktop.
def whohas(pac):
"""Run the included or system whohas and print the findings"""
p = Popen(['which', 'whohas'], stdout=PIPE).communicate()[0]
if not p == None:
wh = p
else:
wh = os.getcwd()+"/whohas-0.24/program/whohas"
cmd = str(wh)+" "+pac
print cmd
os.system(cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment