callirhoe/make_resources_list
2014-10-31 16:25:24 +00:00

16 lines
415 B
Python
Executable File

#!/usr/bin/env python2
import glob
lang = glob.glob('lang/*.py')
style = glob.glob('style/*.py')
layouts = glob.glob('layouts/*.py')
geom = glob.glob('geom/*.py')
out = open('resources.py', 'w')
out.write('resource_list = { ')
out.write('"lang" : ' + str(lang) + ', ')
out.write('"style" : ' + str(style)+ ', ')
out.write('"layouts" : ' + str(layouts) + ', ')
out.write('"geom" :' + str(geom) + ' }')
out.close()