meta_join.py revision 2659f65a0425d98b674a33579167696396019630
# -*- coding: utf-8 -*-
# vim: et sw=4 ts=4
SRC_DIR = '../'
SRC_SUBDIR = 'meta'
SRC_EXT = 'json'
TEMPLATE_DIR = 'template'
TEMPLATE_FILE = 'meta.js'
TEMPLATE_TOKEN = '{ /* METAGEN */ }'
DEST_DIR = 'js'
DEST_JSON = 'modules.json'
DEST_JS = 'meta.js'
print src_path
print dest_path
modules = {}
# module director
print dirname
# meta dir
print j
# read all [component].json files
try:
except:
print 'WARNING: could not read ' + j
# print simplejson.dumps(data, ensure_ascii=False, sort_keys=True, indent=4)
if data:
modules[k] = v
print jsonstr
# write the raw module json
# create the meta.js file from a template
print 'done'
def main():
if __name__ == '__main__':
main()