def _resource_path(self, resource: str) -> Path:
    if (resource not in self.resources):
        raise ConfigError(f'Path for resource "{resource}" not set')
    resource = self.resources[resource]
    if (not resource['exists']()):
        log.warn(f"{resource['type']} not found")
        resource['create']()
        print('Created resource =>', end=' ', file=stderr)
        log.color_print(resource['path'], log.Color.BLUE, file=stderr)
    return resource['path']
def _resource_path(self, resource: str) -> Path:
    if (resource not in self.resources):
        raise ConfigError(f'Path for resource "{resource}" not set')
    resource = self.resources[resource]
    if (not resource['exists']()):
        log.warn(f"{resource['type']} not found")
        resource['create']()
        print('Created resource =>', end=' ', file=stderr)
        log.color_print(resource['path'], log.Color.BLUE, file=stderr)
    return resource['path']