MCPcopy Create free account
hub / github.com/DanielPFlorian/ComfyUI-WorkflowGenerator / get_custom_node_path

Function get_custom_node_path

config/config.py:39–52  ·  view source on GitHub ↗

Get the path to the ComfyUI-WorkflowGenerator custom node directory. Returns: Path to custom node directory

()

Source from the content-addressed store, hash-verified

37
38
39def get_custom_node_path() -> Path:
40 """
41 Get the path to the ComfyUI-WorkflowGenerator custom node directory.
42
43 Returns:
44 Path to custom node directory
45 """
46 current_file = Path(__file__).resolve()
47
48 # config/config.py -> ComfyUI-WorkflowGenerator/
49 if current_file.parent.name == "config":
50 return current_file.parent.parent
51
52 return Path.cwd()
53
54
55def resolve_config_path(path: str, base_path: Path | None = None) -> str:

Callers 3

executeMethod · 0.85
resolve_config_pathFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected