method: path.local.relto

 return a string which is the relative part of the path
        to the given 'relpath'. 
        
    def relto(self, relpath):

origin: PathBase

where:

exceptions that might appear during execution:

function source:

def relto(self, relpath):
    """ return a string which is the relative part of the path
        to the given 'relpath'. 
        """
    if not isinstance(relpath, (str, PathBase)): 
        raise TypeError("%r: not a string or path object" %(relpath,))
    strrelpath = str(relpath)
    if strrelpath and strrelpath[-1] != self.sep:
        strrelpath += self.sep
    #assert strrelpath[-1] == self.sep
    #assert strrelpath[-2] != self.sep
    strself = str(self)
    if strself.startswith(strrelpath):
        return strself[len(strrelpath):]
    return ""

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.0

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback path.local.relto.1

called in /home/johnny/projects/merlinux/py/dist/py/path/local/local.py

traceback path.local.relto.2

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.3

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.4

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.5

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.6

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.7

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.8

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback path.local.relto.9

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.10

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.11

called in /home/johnny/projects/merlinux/py/dist/py/path/local/local.py

traceback path.local.relto.12

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.13

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.14

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.15

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback path.local.relto.16

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.17

called in /home/johnny/projects/merlinux/py/dist/py/path/local/local.py

traceback path.local.relto.18

called in /home/johnny/projects/merlinux/py/dist/py/initpkg.py

traceback path.local.relto.19

called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py

traceback path.local.relto.20