method: path.svnurl.getpymodule

resolve this path to a module python object. 
    def getpymodule(self):

origin: FSPathBase

where:

changes in __dict__ after execution:

exceptions that might appear during execution:

function source:

def getpymodule(self):
    """resolve this path to a module python object. """
    modname = str(self)
    modname = modname.replace('.', self.sep)
    try:
        return sys.modules[modname]
    except KeyError:
        co = self.getpycodeobj()
        mod = py.std.new.module(modname)
        mod.__file__ = PathStr(self)
        if self.basename == '__init__.py':
            mod.__path__ = [str(self.dirpath())]
        sys.modules[modname] = mod
        try: 
            exec co in mod.__dict__
        except: 
            del sys.modules[modname] 
            raise 
        return mod

call sites:

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

traceback path.svnurl.getpymodule.0

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

traceback path.svnurl.getpymodule.1

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

traceback path.svnurl.getpymodule.2

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

traceback path.svnurl.getpymodule.3

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

traceback path.svnurl.getpymodule.4

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

traceback path.svnurl.getpymodule.5

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

traceback path.svnurl.getpymodule.6

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

traceback path.svnurl.getpymodule.7