Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, directory):
self.directory = directory
with open(os.path.join(directory, 'config.yml')) as fp:
config = yaml.safe_load(fp)
self.files = [FileStatus(f['name'], f['path'],
f.get('read_by_runs'),
f.get('written_by_runs'))
for f in config.get('inputs_outputs') or []]
logger.info("Loaded %d files from the configuration", len(self.files))
self._refresh()