I suggest to split this up in two lines:

```python
xdg_config_home = os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), ".config")
newpath = os.path.join(xdg_config_home, "easybuild")
```