def jsfy_file(path, basedir, fout):
    fname = basename(path)
    if fname.startswith('.'):
        return
    if (not path.startswith(basedir)):
        return
    (filename, extname) = splitext(path)
    if (extname in filter_text_ext):
        res_key = path[len(basedir):]
        print(((res_key + ' -> ') + path))
        fin = open(path, 'r')
        txt = json.dumps(fin.read())
        fout.write((((('jsfy_res["' + res_key) + '"] = ') + txt) + ';\n\n'))
    pass
def jsfy_file(path, basedir, fout):
    fname = basename(path)
    if fname.startswith('.'):
        return
    if (not path.startswith(basedir)):
        return
    (filename, extname) = splitext(path)
    if (extname in filter_text_ext):
        res_key = path[len(basedir):]
        print(((res_key + ' -> ') + path))
        fin = open(path, 'r')
        txt = json.dumps(fin.read())
        fout.write((((('jsfy_res["' + res_key) + '"] = ') + txt) + ';\n\n'))
    pass