Either I didn't understand the comment but `os.path.join` is smart:

```python
>>> import os
>>> os.path.join(
...     '/a/b/',
...     '/a/c/y.ini'
... )
'/a/c/y.ini'
```