return dotted module path (relative to the containing).
def getmodpath(self):
origin: test.collect.Collector
where:
function source:
def getmodpath(self):
""" return dotted module path (relative to the containing). """
inmodule = False
newl = []
for x in self.listchain():
if not inmodule and not isinstance(x, Module):
continue
if not inmodule:
inmodule = True
continue
if newl and x.name[:1] in '([':
newl[-1] += x.name
else:
newl.append(x.name)
return ".".join(newl)
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.0
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.1
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.2
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.3
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.4
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.5
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.6
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.7
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.8
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.9
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.10
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.11
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.12
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback test.Function.getmodpath.13
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py