def __init__(self, path):
    self.path = pathlib.Path(path)
    name = str((self.path.parent / self.path.stem))
    name = name.replace('/', '.')
    self.name = re.sub('^[\\.]+', '', name)
    self.module = imm.SourceFileLoader(self.name, path).load_module()
    if (not hasattr(self.module, 'get_parser')):
        raise ValueError(f'{path} does not have get_parser()')
def __init__(self, path):
    self.path = pathlib.Path(path)
    name = str((self.path.parent / self.path.stem))
    name = name.replace('/', '.')
    self.name = re.sub('^[\\.]+', , name)
    self.module = imm.SourceFileLoader(self.name, path).load_module()
    if (not hasattr(self.module, 'get_parser')):
        raise ValueError(f'{path} does not have get_parser()')