'Converts a relative path to an absolute path relative to the root.
Does nothing for paths that are already absolute.
:param str path: The path
:returns: The absolute path
:rtype: str'

def abs_path(self, path):

    if (not os.path.isabs(path)):
        return os.path.join(self.root, path)
    else:
        return path
