now correctly processes modules when in subdirs of cloud
This commit is contained in:
parent
7a5e7db2df
commit
80b1365d53
1 changed files with 4 additions and 3 deletions
|
@ -127,10 +127,11 @@ def list_modules(module_dir):
|
|||
files = glob.glob("%s/*/*" % module_dir)
|
||||
for d in files:
|
||||
if os.path.isdir(d):
|
||||
files2 = glob.glob("%s/*" % 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":
|
||||
category = os.path.dirname(f).split("/")[-1]
|
||||
|
||||
if not f.endswith(".py") or f.endswith('__init__.py'):
|
||||
|
|
Loading…
Reference in a new issue