Skip to content

Instantly share code, notes, and snippets.

@maliciousgroup
Created April 7, 2021 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maliciousgroup/110fd1dbaa981e0c4755006a9fd05e1a to your computer and use it in GitHub Desktop.
Save maliciousgroup/110fd1dbaa981e0c4755006a9fd05e1a to your computer and use it in GitHub Desktop.
import glob
from os.path import dirname, basename, isfile, join
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment