mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-18 06:47:01 +08:00
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:
parent
55ad9d5f8c
commit
b0a3c7168c
5
main.py
5
main.py
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user