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)
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/testing/test_extpy.py
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py