Get the path to the ComfyUI-WorkflowGenerator custom node directory. Returns: Path to custom node directory
()
| 37 | |
| 38 | |
| 39 | def 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 | |
| 55 | def resolve_config_path(path: str, base_path: Path | None = None) -> str: |
no outgoing calls
no test coverage detected