Get the directory path of the module containing the given object name.
(obj_name: str)
| 304 | |
| 305 | |
| 306 | def get_module_dir_by_obj_name(obj_name: str) -> str: |
| 307 | """Get the directory path of the module containing the given object name.""" |
| 308 | module, _ = get_module_from_obj_name(obj_name) |
| 309 | return os.path.dirname(inspect.getfile(module)) |
| 310 | |
| 311 | |
| 312 | def is_top_level_function(obj: Any) -> bool: |
nothing calls this directly
no test coverage detected