From e8c1bb0e3c4cae579e81ce6a4b01b829900ff922 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 3 Feb 2019 09:43:27 +0000 Subject: Whenever possible, use bwrap for subprocesses This should closes #90 --- libmat2/parser_factory.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmat2/parser_factory.py') diff --git a/libmat2/parser_factory.py b/libmat2/parser_factory.py index 4a0ca0d..30c3b52 100644 --- a/libmat2/parser_factory.py +++ b/libmat2/parser_factory.py @@ -10,6 +10,7 @@ assert Tuple # make pyflakes happy T = TypeVar('T', bound='abstract.AbstractParser') + def __load_all_parsers(): """ Loads every parser in a dynamic way """ current_dir = os.path.dirname(__file__) @@ -24,8 +25,10 @@ def __load_all_parsers(): name, _ = os.path.splitext(basename) importlib.import_module('.' + name, package='libmat2') + __load_all_parsers() + def _get_parsers() -> List[T]: """ Get all our parsers!""" def __get_parsers(cls): -- cgit v1.3