Spaces:
Sleeping
Sleeping
File size: 426 Bytes
ca4eb6d 11ae35a ca4eb6d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
async def all_plugins():
# This generates a list of plugins in this folder for the * in __main__ to
# work.
from glob import glob
from os.path import basename, dirname, isfile
mod_paths = glob(dirname(__file__) + "/*.py")
all_plugs = [
basename(f)[:-3]
for f in mod_paths
if isfile(f) and f.endswith(".py") and not f.endswith("__init__.py")
]
return sorted(all_plugs)
|