| Index: write_html.py
|
| diff --git a/write_html.py b/write_html.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..4a515fb7b7ae6b4967863df44acb2d0c836daf05
|
| --- /dev/null
|
| +++ b/write_html.py
|
| @@ -0,0 +1,32 @@
|
| +#!/usr/bin/env python
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import argparse
|
| +import json
|
| +import os
|
| +import shutil
|
| +import sys
|
| +import time
|
| +import urllib
|
| +
|
| +def main(argv):
|
| + parser = argparse.ArgumentParser()
|
| + parser.add_argument('--out', required=True)
|
| + options = parser.parse_args(argv)
|
| +
|
| + outdir = options.out
|
| +
|
| + with open('%s/index' % outdir) as idx:
|
| + index = json.load(idx)
|
| +
|
| +
|
| + for e in index:
|
| + print e
|
| +
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv[1:]))
|
| +
|
|
|