def cmd1(str): return os.popen(str).readlines()[0][:-1]
def __init__(self, names): def stripfirsttwo(string): return string[2:] self.libs = map(stripfirsttwo, os.popen("pkg-config --libs-only-l %s" % names).read().split()) self.libdirs = map(stripfirsttwo, os.popen("pkg-config --libs-only-L %s" % names).read().split()) self.incdirs = map(stripfirsttwo, os.popen("pkg-config --cflags-only-I %s" % names).read().split())
def cmd1(s): print s return os.popen(s).readlines()[0][:-1]