- Split app.py into route blueprints (files, layers, images, polygon, mask, krita) - Create services layer (polygon_storage, comfyui, file_browser) - Extract config constants to config.py - Split templates into Jinja partials (base, components, modals) - Add browse dialog for visual file navigation - Add /api/browse endpoint for directory listing
13 lines
297 B
Python
13 lines
297 B
Python
"""Configuration for ORA Editor application."""
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
APP_DIR = Path(__file__).parent
|
|
PROJECT_ROOT = Path("/home/noti/dev/ai-game-2")
|
|
TEMP_DIR = APP_DIR / "temp"
|
|
|
|
COMFYUI_BASE_URL = os.environ.get('COMFYUI_BASE_URL', '127.0.0.1:8188')
|
|
|
|
TEMP_DIR.mkdir(exist_ok=True)
|