callirhoe/scripts/make_resources_list.py

12 lines
250 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python2.7
import glob
res = dict()
for x in ['lang', 'style', 'layouts', 'geom']:
res[x] = glob.glob('%s/*.py' % x)
print('resource_list = {}')
for x in list(res.keys()):
print('resource_list["%s"] = %s' % (x, str(res[x])))