Get the directory path of the module containing the given object name.
(obj_name: str)
| 293 | |
| 294 | |
| 295 | def get_module_dir_by_obj_name(obj_name: str) -> str: |
| 296 | """Get the directory path of the module containing the given object name.""" |
| 297 | module, _ = get_module_from_obj_name(obj_name) |
| 298 | return os.path.dirname(inspect.getfile(module)) |
| 299 | |
| 300 | |
| 301 | def is_top_level_function(obj: Any) -> bool: |
nothing calls this directly
no test coverage detected