fix dotenv dependency, also add license agreement

This commit is contained in:
Auto
2026-01-06 17:03:35 +02:00
parent 908754302a
commit 1e20ba9cc9
5 changed files with 693 additions and 14 deletions

View File

@@ -28,14 +28,8 @@ import time
import webbrowser
from pathlib import Path
from dotenv import load_dotenv
ROOT = Path(__file__).parent.absolute()
# Load environment variables from .env file
# This ensures env vars like PROGRESS_N8N_WEBHOOK_URL are available to subprocesses
load_dotenv(ROOT / ".env")
VENV_DIR = ROOT / "venv"
UI_DIR = ROOT / "ui"
@@ -224,6 +218,13 @@ def main() -> None:
print("ERROR: Failed to install Python dependencies")
sys.exit(1)
# Load environment variables now that dotenv is installed
try:
from dotenv import load_dotenv
load_dotenv(ROOT / ".env")
except ImportError:
pass # dotenv is optional for basic functionality
# Step 3: Check Node.js
print_step(3, total_steps, "Checking Node.js")
if not check_node():