def get_build_maps():
 build_maps = {}
 for app_path in app_paths:
  path = os.path.join(app_path, u'public', u'build.json')
  if os.path.exists(path):
   with open(path) as f:
    try:
     for (target, sources) in json.loads(f.read()).iteritems():
      source_paths = []
      for source in sources:
       if isinstance(source, list):
        s = frappe.get_pymodule_path(source[0], *source[1].split(u'/'))
       else:
        s = os.path.join(app_path, source)
       source_paths.append(s)
      build_maps[target] = source_paths
    except ValueError as e:
     print path
     print u'JSON syntax error {0}'.format(str(e))
 return build_maps

def get_build_maps ( ) : build_maps = { } for app_path in app_paths : path = os . path . join ( app_path , u'public' , u'build.json' ) if os . path . exists ( path ) : with open ( path ) as f : try : for ( target , sources ) in json . loads ( f . read ( ) ) . iteritems ( ) : source_paths = [ ] for source in sources : if isinstance ( source , list ) : s = frappe . get_pymodule_path ( source [ 0 ] , * source [ 1 ] . split ( u'/' ) ) else : s = os . path . join ( app_path , source ) source_paths . append ( s ) build_maps [ target ] = source_paths except ValueError as e : print path print u'JSON syntax error {0}' . format ( str ( e ) ) return build_maps
get all build .