techyygarry commited on
Commit
227d576
·
verified ·
1 Parent(s): 9d5ae3f

Update gnx_flux_lora.py

Browse files
Files changed (1) hide show
  1. gnx_flux_lora.py +13 -0
gnx_flux_lora.py CHANGED
@@ -1,4 +1,17 @@
1
  import sys
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  sys.path.append("ComfyUI")
3
 
4
  import os
 
1
  import sys
2
+ import os
3
+
4
+ # Get the full path to the ComfyUI folder and its comfy submodule
5
+ comfyui_path = os.path.join(os.getcwd(), "ComfyUI")
6
+ comfy_module_path = os.path.join(comfyui_path, "comfy")
7
+
8
+ # Add both to sys.path so Python can import from them
9
+ if comfyui_path not in sys.path:
10
+ sys.path.append(comfyui_path)
11
+
12
+ if comfy_module_path not in sys.path:
13
+ sys.path.append(comfy_module_path)
14
+ import sys
15
  sys.path.append("ComfyUI")
16
 
17
  import os