def get_module_path ( modname ) : return osp . abspath ( osp . dirname ( sys . modules [ modname ] . __file__ ) )
how to get the python path
Return module * modname * base path
def get_module_path(modname):
    """Return module *modname* base path"""
    return osp.abspath(osp.dirname(sys.modules[modname].__file__))