update build.py (examples)

This commit is contained in:
rolux 2012-06-21 23:15:35 +02:00
parent c3047a1586
commit da6d94cf05

View file

@ -170,10 +170,19 @@ def build_oxjs(downloads=False, geo=False):
lambda x: 'Ox.%s/Ox.%s.js' % (x, x),
['Geo', 'Image', 'Unicode']
)),
'examples': filter(
'examples': sorted(sum(map(
lambda x: filter(
lambda x: not re.search('/[._]', x),
map(
lambda y: x + '/' + y,
os.listdir(root_path + 'examples/' + x)
)
),
filter(
lambda x: not re.search('^[._]', x),
os.listdir(root_path + 'examples/')
),
)
), [])),
'readme': map(
lambda x: {
'date': time.strftime(