oxjs/tools/build/build.py

14 lines
354 B
Python
Raw Normal View History

2010-09-05 14:24:22 +00:00
import os
import simplejson
images = []
path = '../../build/'
for dirname, dirnames, filenames in os.walk(path + 'png'):
for filename in filenames:
if filename[:1] != '.':
images.append(os.path.join(dirname.replace(path, ''), filename))
f = open(path + 'json/ox.ui.images.json', 'w')
f.write(simplejson.dumps(images))
f.close()