Fix: Remove hardcoded paths - now fully standalone
- Changed all load_dotenv() calls to use relative path (just load_dotenv()) - No OpenClaw dependencies - Works anywhere after pip install
This commit is contained in:
@@ -9,7 +9,7 @@ from typing import Any, Optional
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from autogen import ConversableAgent, GroupChat, GroupChatManager
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ from typing import Any, Optional
|
||||
from crewai import Agent, Crew, LLM, Process, Task
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.config import get_config
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from typing import Any, Optional
|
||||
from crewai import Agent, Process
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.crews.base_crew import OpusCrew
|
||||
from opus_orchestrator.config import get_config
|
||||
|
||||
@@ -8,7 +8,7 @@ from typing import Any, Optional
|
||||
from crewai import Agent, Process
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.crews.base_crew import OpusCrew
|
||||
from opus_orchestrator.config import get_config
|
||||
|
||||
@@ -16,7 +16,7 @@ from typing import Any, Optional
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from pydantic import BaseModel, Field, ConfigDict
|
||||
from enum import Enum
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Any, Optional
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.agents.fiction import (
|
||||
ArchitectAgent,
|
||||
|
||||
@@ -10,7 +10,7 @@ from pydantic import BaseModel
|
||||
from pydantic_ai import Agent
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.config import get_config
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ from fastapi.responses import JSONResponse, RedirectResponse
|
||||
from pydantic import BaseModel, Field
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
from opus_orchestrator.config import get_config
|
||||
from opus_orchestrator import run_opus, OpusOrchestrator
|
||||
|
||||
@@ -11,7 +11,7 @@ from typing import Any, Optional
|
||||
import requests
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class GitHubIngestor:
|
||||
|
||||
@@ -12,7 +12,7 @@ import boto3
|
||||
from botocore.exceptions import ClientError, NoCredentialsError
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class S3Ingestor:
|
||||
|
||||
@@ -14,7 +14,7 @@ from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("/home/solaria/.openclaw/workspace/opus-orchestrator-ai/.env")
|
||||
load_dotenv()
|
||||
|
||||
|
||||
# HTML Template for the UI
|
||||
|
||||
Reference in New Issue
Block a user