pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.38k stars 104 forks source link

Fix relative import paths in autocompleter.js #206

Closed stereosix closed 3 months ago

stereosix commented 3 months ago

Looks like there are a couple of imports that attempt to go up one directory higher than they should.

Was running into a stubborn issue with this file where it would not be loaded by ComfyUI when accessing Comfy hosted in a subdirectory using a reverse proxy (e.g., [http://example.com/comfy/]()). When hosted at the root, the extra ../ is silently ignored and all appears well, but when running Comfy in a subdirectory, it ends up going outside of the subdirectory and causes these imports to fail, causing the autocompleter extension to fail.

Should solve #179, as I was seeing the same issue.