extended python compatibility

I've been messing around with newer python versions that the original venv is using, which broke ComfyUI by failing to import the comfy module. This small change will make it run and find the module with other python versions than the original installations intended to use.
This commit is contained in:
.raw 2024-08-09 12:30:39 +02:00 committed by GitHub
parent 55ad9d5f8c
commit b0a3c7168c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,10 @@
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import comfy.options import comfy.options
comfy.options.enable_args_parsing() comfy.options.enable_args_parsing()
import os
import importlib.util import importlib.util
import folder_paths import folder_paths
import time import time