

def relative_ref(self, baseURI):
    "\n        Return string containing relative reference to package item from\n        *baseURI*. E.g. PackURI('/ppt/slideLayouts/slideLayout1.xml') would\n        return '../slideLayouts/slideLayout1.xml' for baseURI '/ppt/slides'.\n        "
    if (baseURI == '/'):
        relpath = self[1:]
    else:
        relpath = posixpath.relpath(self, baseURI)
    return relpath

dataset/ETHPy150Open python-openxml/python-docx/docx/opc/packuri.py PackURI.relative_ref/original