From 7bd2c945a76a1ca921b53f10a4bd4afbee5feeab Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 3 Nov 2014 08:15:26 -0500 Subject: [PATCH] now doc generation does not ignore subdirs of cloud --- hacking/module_formatter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index fe0da35ed85..ee7ee45327a 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -129,9 +129,11 @@ def list_modules(module_dir): if os.path.isdir(d): files2 = glob.glob("%s/*" % d) + glob.glob("%s/*/*" % d) for f in files2: + module = os.path.splitext(os.path.basename(f))[0] - category = "cloud" - if os.path.dirname(f).split("/")[-2] != "cloud": + if os.path.dirname(f).split("/")[-2] == "cloud": + category = "cloud" + else: category = os.path.dirname(f).split("/")[-1] if not f.endswith(".py") or f.endswith('__init__.py'):