summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/components.py
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@apheleia-it.ch>2022-08-04 14:12:50 +0200
committerChristian Mollekopf <mollekopf@apheleia-it.ch>2022-08-25 13:53:11 +0200
commitbf9b25e978f2fa9d678d4a98f5e91407bc2b4625 (patch)
treeabe272cbd9c20f80db74b2a86f0b38581285ca4f /pykolab/setup/components.py
parentcd5d0dcec3b11ef70b11507c8212e89d22d0775e (diff)
downloadpykolab-bf9b25e978f2fa9d678d4a98f5e91407bc2b4625.tar.gz
Skip __pycache__ when iterating over directories
Diffstat (limited to 'pykolab/setup/components.py')
-rw-r--r--pykolab/setup/components.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/setup/components.py b/pykolab/setup/components.py
index 45f7ff8..e391dd2 100644
--- a/pykolab/setup/components.py
+++ b/pykolab/setup/components.py
@@ -54,7 +54,8 @@ def __init__():
exec("%s_register()" % (component_name))
for dirname in dirnames:
- register_group(components_path, dirname)
+ if dirname != '__pycache__':
+ register_group(components_path, dirname)
register('help', list_components, description=_("Display this help."))