Created
November 15, 2014 13:19
-
-
Save victoredwardocallaghan/5996f75b6b8d31925770 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env python2 | |
import glob | |
import re | |
def vendor(): | |
vendor_kconfigs = glob.glob('src/mainboard/*/Kconfig') | |
for idx in vendor_kconfigs: | |
m = re.match(r'^src/mainboard/(.*)/Kconfig$', idx) | |
if m: | |
vendor = m.group(1) | |
print (vendor) | |
vendor() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment