'create a symbolic link with the given value (pointing to another name).'

def mksymlinkto(self, value, absolute=1):

    if absolute:
        py.error.checked_call(os.symlink, str(value), self.strpath)
    else:
        base = self.common(value)
        relsource = self.__class__(value).relto(base)
        reldest = self.relto(base)
        n = reldest.count(self.sep)
        target = self.sep.join(((('..',) * n) + (relsource,)))
        py.error.checked_call(os.symlink, target, self.strpath)
