feat: move import to __init__.py

This commit is contained in:
Radionic
2023-09-26 17:12:43 +08:00
parent de211a79e4
commit df96815448
2 changed files with 5 additions and 10 deletions
-7
View File
@@ -90,13 +90,6 @@ def prompt_worker(q, server):
item, item_id = q.get()
# Add next line
global_bpy.reset_bpy()
if __name__ == "__main__":
# Add next two lines
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "custom_nodes", "avatar-graph-comfyui"))
```
5. Restart comfyui
+5 -3
View File
@@ -4,11 +4,13 @@
@nickname: Avatar Graph
@description: Include nodes for sam + bpy operation, that allows workflow creations for generative 2d character rig.
"""
import routes
import inspect
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__)))
import routes
import inspect
import sys
import importlib
import subprocess
from folder_paths import add_model_folder_path