src_docs/make_docs.py
def _get_cpplib_module(full_module_name):
        """Returns the module object for the given module path"""
        import cpplib  # make sure the root module is loaded
        try:
            # try to import directly. This will work for pure python submodules
            module = importlib.import_module(full_module_name)
            return module
        except ImportError:
            # traverse the module hierarchy of the root module.
            # This code path is necessary for modules for which we manually
            # define a specific module path (e.g. the modules defined with
            # pybind).
            current_module = cpplib
            for sub_module_name in full_module_name.split('.')[1:]:
                current_module = getattr(current_module, sub_module_name)
            return current_module
Returns the module object for the given module path
Returns the module object for the given module path
Returns the module object for the given module path
def _get_cpplib_module(full_module_name):
        import cpplib  
        try:
            module = importlib.import_module(full_module_name)
            return module
        except ImportError:
            current_module = cpplib
            for sub_module_name in full_module_name.split('.')[1:]:
                current_module = getattr(current_module, sub_module_name)
            return current_module
def _get_cpplib_module ( full_module_name ) : import cpplib try : module = importlib . import_module ( full_module_name ) return module except ImportError : current_module = cpplib for sub_module_name in full_module_name . split ( '.' ) [ 1 : ] : current_module = getattr ( current_module , sub_module_name ) return current_module
Returns the module object for the given module path
Returns the module object for the given module path
"""Returns the module object for the given module path""" # make sure the root module is loaded # try to import directly. This will work for pure python submodules # traverse the module hierarchy of the root module. # This code path is necessary for modules for which we manually # define a specific module path (e.g. the modules defined with # pybind).
full_module_name