method: path.extpy.new

 create a modified version of this path.
            the following keyword arguments modify various path parts:
            modpath    substitute module path
        
    def new(self, **kw):

origin: path.extpy

where:

function source:

def new(self, **kw):
    """ create a modified version of this path.
            the following keyword arguments modify various path parts:
            modpath    substitute module path
        """
    cls = self.__class__
    if 'modpath' in kw:
        return cls(self.root, kw['modpath'])
    if 'basename' in kw:
        i = self.modpath.rfind('.')
        if i != -1:
            return cls(self.root, self.modpath[i+1:] + kw['basename'])
        else:
            return cls(self.root, kw['basename'])
    return cls(self.root, self.modpath)

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.0

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.1

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.2

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

traceback path.extpy.new.3

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.4

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.5

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.6

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.7

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.8

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.9

called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py

traceback path.extpy.new.10

called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py

traceback path.extpy.new.11

called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py

traceback path.extpy.new.12