Commit c4a8a6d3 by Michael DeHaan

Add an "all" category so all modules show up uncategorized there.

parent 1251538e
......@@ -117,7 +117,7 @@ def write_data(text, options, outputname, module):
def list_modules(module_dir):
''' returns a hash of categories, each category being a hash of module names to file paths '''
categories = {}
categories = dict(all=dict())
files = glob.glob("%s/*" % module_dir)
for d in files:
if os.path.isdir(d):
......@@ -129,6 +129,7 @@ def list_modules(module_dir):
if not category in categories:
categories[category] = {}
categories[category][module] = f
categories['all'][module] = f
return categories
#####################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment