Restructure to nodes/ layout like Floyo Seed API
This commit is contained in:
@@ -10,6 +10,12 @@ Custom ComfyUI node for Floyo that wraps the Black Forest Labs FLUX.2 **[pro]**
|
||||
- Built-in polling with basic error handling and timeouts.
|
||||
|
||||
## Installation
|
||||
Repo layout (mirrors Floyo Seed API style):
|
||||
- `nodes/` → node code and helpers
|
||||
- `config.ini` → API key placeholder
|
||||
- `requirements.txt`
|
||||
- `README.md`, `__init__.py`
|
||||
|
||||
1. Place this repository folder (e.g., `Flux2-Pro`) into `ComfyUI/custom_nodes/`.
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
from .flux2_node import (
|
||||
from .nodes.flux2_node import ( # noqa: F401
|
||||
Flux2ProImageEdit,
|
||||
Flux2ProTextToImage,
|
||||
NODE_CLASS_MAPPINGS,
|
||||
|
||||
@@ -15,7 +15,8 @@ class Flux2Config:
|
||||
|
||||
def _initialize(self):
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
config_path = os.path.join(current_dir, "config.ini")
|
||||
# Config lives at repo root (parent of nodes/)
|
||||
config_path = os.path.join(os.path.dirname(current_dir), "config.ini")
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read(config_path)
|
||||
Reference in New Issue
Block a user