this should really be:

```python
srcdir = os.path.join(default_srcdir, self.cfg['srcdir'])
```