#!/usr/bin/env python31# coding: utf823'''4This creates an index file `index.js` such that SageMathCloud (https://cloud.sagemath.com)5knows about each relevant file, information in it, etc.67The format of `index.js` is standard JSON, such that a node.js process can read it easily.8'''910from json import dump11from codecs import open12from glob import glob13from os.path import isdir1415index = []1617for fn in glob("*"):18if isdir(fn):19index.append(fn)2021with open("index.js", "w", "utf8") as out:22dump(index, out)23242526