Restructure to nodes/ layout like Floyo Seed API

This commit is contained in:
RITIK
2025-11-26 13:34:11 +05:30
parent e1d4eec5a9
commit 9da452f039
6 changed files with 9 additions and 2 deletions
+6
View File
@@ -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
View File
@@ -1,4 +1,4 @@
from .flux2_node import (
from .nodes.flux2_node import ( # noqa: F401
Flux2ProImageEdit,
Flux2ProTextToImage,
NODE_CLASS_MAPPINGS,
View File
+2 -1
View File
@@ -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)