From b0a3c7168cc4c5c73c79be0b72fb1c67547a2547 Mon Sep 17 00:00:00 2001 From: ".raw" Date: Fri, 9 Aug 2024 12:30:39 +0200 Subject: [PATCH] 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. --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 479643b84..f5bbd0aa6 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,10 @@ +import sys +import os +sys.path.append(os.path.dirname(os.path.abspath(__file__))) + import comfy.options comfy.options.enable_args_parsing() -import os import importlib.util import folder_paths import time