Created
June 15, 2010 23:18
-
-
Save jrabbit/439894 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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