import os from pathlib import Path from abc import ABC class Insel(ABC): def __init__(self, path): self._path = path self._results = None def run(self): paths = sorted(Path(self._path).glob('*.insel')) for file in paths: os.system('insel ' + str(file)) @property def results(self): raise NotImplementedError