'Converts chrooted path to absolute path'

def chroot2abs(self, path):

    if (None == self.enabled):
        raise RuntimeError('SoftChroot    is    not    initialized')
    if (not self.enabled):
        return path
    if ((None == path) or (len(path) == 0)):
        return self.chdir
    if (not path.startswith(os.path.sep)):
        path = (os.path.sep + path)
    return (self.chdir[:(-1)] + path)
