11 for root, dirs, files
in os.walk(specs):
12 for f
in sorted(files):
13 if not f.endswith(
"spectrum"):
16 f = os.path.relpath(os.path.join(root, f))
17 description = open(f,
"r").readline().strip()
18 fname = os.path.split(f)[1]
19 description =
"""## %s\n**File Location:** %s\n\n%s\n""" % (fname, f.strip(
"./"), description)
21 items.append(description)
23 return "\n".
join(items)