Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 63365437 authored by jvoisin's avatar jvoisin
Browse files

Improve a bit parsers autoloading

parent 0079b4e8
......@@ -14,7 +14,7 @@ def __load_all_parsers():
""" Loads every parser in a dynamic way """
current_dir = os.path.dirname(__file__)
for name in glob.glob(os.path.join(current_dir, '*.py')):
if name in ('abstract.py', '__init__.py'):
if name.endswith('abstract.py') or name.endswith('__init__.py'):
continue
basename = os.path.basename(name)
name, _ = os.path.splitext(basename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment