Skip to content

Instantly share code, notes, and snippets.

@victoredwardocallaghan
Created November 15, 2014 13:19
Show Gist options
  • Save victoredwardocallaghan/5996f75b6b8d31925770 to your computer and use it in GitHub Desktop.
Save victoredwardocallaghan/5996f75b6b8d31925770 to your computer and use it in GitHub Desktop.
#!/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