this kind of looping is not very Pythonic. Better to loop over the elements of the list themselves, create a new list and assign that list to the settings variable, possibly do all that as a list comprehension, something like
```Python
local_settings['PLUGIN_PATH'] = [ (os.path.abspath(os.path.normpath(os.path.join(
    os.path.dirname(path), path))) if not isabs(path) else path) for path in local_settings['PLUGIN_PATH'] ]
```