mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Allow modules to be categorized, and also sort them when generating the documentation.
This commit is contained in:
parent
f46bdb6343
commit
391fb98ee2
87 changed files with 118 additions and 67 deletions
|
@ -92,8 +92,15 @@ class PluginLoader(object):
|
|||
ret += self._extra_dirs
|
||||
for basedir in _basedirs:
|
||||
fullpath = os.path.join(basedir, self.subdir)
|
||||
if fullpath not in ret:
|
||||
ret.append(fullpath)
|
||||
if os.path.isdir(fullpath):
|
||||
files = glob.glob("%s/*" % fullpath)
|
||||
for file in files:
|
||||
if os.path.isdir(file):
|
||||
ret.append(file)
|
||||
else:
|
||||
if fullpath not in ret:
|
||||
ret.append(fullpath)
|
||||
|
||||
ret += self.config.split(os.pathsep)
|
||||
ret += self._get_package_path()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue