Contact me to be added to this repository. Push the creations you make for D&D, and they will be displayed in a nice website. See the website for how to contribute.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
377 B

import glob
def get_items():
items_dir = "../Items/*"
items_list = []
for fname in glob.glob(items_dir):
f = open(fname,'r')
lines ='\n')
header = lines[0]
tail = '\n'.join(lines[2:])
items_list.sort(key=lambda pair: pair[0])
return items_list