Alter the config.path_join function to remove empty sections.

This commit is contained in:
Mike Auty
2016-08-21 21:47:45 +01:00
parent e54505701f
commit dc16d93b77
@@ -11,6 +11,8 @@ CONFIG_SEPARATOR = "."
def path_join(*args):
"""Joins the config paths together"""
# If a path element (particularly the first) is empty, then remove it from the list
args = [arg for arg in args if arg]
return CONFIG_SEPARATOR.join(args)