diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2021-01-29 15:17:29 +0000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2021-01-29 15:17:29 +0000 |
commit | bfc6187589095f11fbee08624e5b16aeddbeecdc (patch) | |
tree | 172720432cf3a1e8d2b5635b4fda8db720270724 | |
parent | fa5d6fcc451da8ccf7678329b10c392c17c3a414 (diff) | |
download | asciidoc-py3-bfc6187589095f11fbee08624e5b16aeddbeecdc.tar.gz |
ignore __pycache__ directory when listing plugin directories
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r-- | asciidoc/asciidoc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/asciidoc/asciidoc.py b/asciidoc/asciidoc.py index f55d629..7ff72b0 100644 --- a/asciidoc/asciidoc.py +++ b/asciidoc/asciidoc.py @@ -6056,7 +6056,9 @@ class Plugin: for d in [os.path.join(d, Plugin.type + 's') for d in config.get_load_dirs()]: if os.path.isdir(d): for f in sorted(filter(os.path.isdir, [os.path.join(d, o) for o in os.listdir(d)])): - message.stdout(os.path.join(d, f)) + if f.endswith('__pycache__'): + continue + message.stdout(f) @staticmethod def build(args): |