(obj_name: str)
return os.path.dirname(inspect.getfile(module))
Get the directory path of the module containing the given object name.
Get the directory path of the module containing the given object name.
Get the directory path of the module containing the given object name .
def get_module_dir_by_obj_name(obj_name: str) -> str:
    """Get the directory path of the module containing the given object name."""
    module, _ = get_module_from_obj_name(obj_name)
    return os.path.dirname(inspect.getfile(module))
def get_module_dir_by_obj_name ( obj_name : str ) -> str : module , _ = get_module_from_obj_name ( obj_name ) return os . path . dirname ( inspect . getfile ( module ) )