Closed ShagaONhan closed 10 months ago
In my case the value of file is: 'C:\work\misc_rep\python\ComfyUI\custom_nodes\ComfyScript\src\comfy_script\runtime\real\init.py'
And the value of comfy_ui is WindowsPath('C:/work/misc_rep/python/ComfyUI/custom_nodes') It should be C:/work/misc_rep/python/ComfyUI/
I replaced with comfy_ui = Path(file).resolve().parents[6] and it worked
Fixed. I forgot to test the real mode after changing the project layout...
In my case the value of file is: 'C:\work\misc_rep\python\ComfyUI\custom_nodes\ComfyScript\src\comfy_script\runtime\real\init.py'
And the value of comfy_ui is WindowsPath('C:/work/misc_rep/python/ComfyUI/custom_nodes') It should be C:/work/misc_rep/python/ComfyUI/
I replaced with comfy_ui = Path(file).resolve().parents[6] and it worked