"valid_examples.txt")
flist = open(flist_name, "r")
validated_examples = flist.readlines()
flist.close()
// Parse "//" in lines
validated_examples = [line.split("//", 1)[0] for line in validated_examples]
// Remove leading and trailing white space from example names
After Change
raise OSError("This must be run from the doc directory")
// Copy the py files; check they are in the examples list and warn if not
with io.open(EG_INDEX_FNAME, "rt", encoding="utf8") as f:
eg_index_contents = f.read()
// Here I am adding an extra step. The list of examples to be executed need