From 0a0c769d6da9202dd98addf21803efe2ff8daf46 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Mon, 6 Mar 2023 14:41:42 -0500 Subject: [PATCH] Try to fix import issue. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 4efd826e..bb53cf05 100644 --- a/nodes.py +++ b/nodes.py @@ -11,7 +11,7 @@ from PIL import Image from PIL.PngImagePlugin import PngInfo import numpy as np -sys.path.insert(0, os.path.join(sys.path[0], "comfy")) +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy")) import comfy.samplers