MCPcopy Create free account
hub / github.com/OpenTalker/StyleHEAT / get_module_dir_by_obj_name

Function get_module_dir_by_obj_name

dnnlib/util.py:306–309  ·  view source on GitHub ↗

Get the directory path of the module containing the given object name.

(obj_name: str)

Source from the content-addressed store, hash-verified

304
305
306def 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
312def is_top_level_function(obj: Any) -> bool:

Callers

nothing calls this directly

Calls 1

get_module_from_obj_nameFunction · 0.85

Tested by

no test coverage detected