Chaoses-Ib / ComfyScript

A Python frontend and library for ComfyUI
https://discord.gg/arqJbtEg7w
MIT License
431 stars 24 forks source link

Import main fail in real mode #14

Closed ShagaONhan closed 10 months ago

ShagaONhan commented 10 months ago

image

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

Chaoses-Ib commented 10 months ago

Fixed. I forgot to test the real mode after changing the project layout...