return the python object, obtained from traversing from
the root along the modpath.
def resolve(self):
origin: path.extpy
where:
exceptions that might appear during execution:
function source:
def resolve(self):
"""return the python object, obtained from traversing from
the root along the modpath.
"""
rest = filter(None, self.modpath.split('.'))
target = self.getpymodule()
for name in rest:
try:
target = getattr(target, name)
except AttributeError:
raise py.error.ENOENT(target, name)
return target
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.0
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.1
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.2
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.3
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.4
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.5
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.6
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.7
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.8
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.9
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.10
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.11
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.12
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.13
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.14
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.15
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.16
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.17
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.18
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py
traceback path.extpy.resolve.19
called in /home/johnny/projects/merlinux/py/dist/py/path/extpy/extpy.py