mirror of
https://github.com/oDinZu/callirhoe.git
synced 2025-02-23 00:02:16 -05:00
Changed make_resource_list as George suggested.
git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@182 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
parent
eac11c2455
commit
b0deb9523f
@ -1,15 +1,13 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
lang = glob.glob('lang/*.py')
|
res = dict()
|
||||||
style = glob.glob('style/*.py')
|
|
||||||
layouts = glob.glob('layouts/*.py')
|
for x in ['lang', 'style', 'layouts', 'geom']:
|
||||||
geom = glob.glob('geom/*.py')
|
res[x] = glob.glob('%s/*.py' % x)
|
||||||
|
|
||||||
out = open('resources.py', 'w')
|
out = open('resources.py', 'w')
|
||||||
out.write('resource_list = { ')
|
|
||||||
out.write('"lang" : ' + str(lang) + ', ')
|
for x in res.keys():
|
||||||
out.write('"style" : ' + str(style)+ ', ')
|
out.write('resources_list["%s"] = %s\n' % (x, str(res[x])))
|
||||||
out.write('"layouts" : ' + str(layouts) + ', ')
|
|
||||||
out.write('"geom" :' + str(geom) + ' }')
|
|
||||||
out.close()
|
out.close()
|
Loading…
x
Reference in New Issue
Block a user