this should be sufficient:

```python
abspath = os.path.join(
    os.path.abspath(os.curdir),
    self.settings.get('localfile_path', ''),
    path,
)
```