Spaces:
Sleeping
Sleeping
fix: Remove hardcoded Windows path breaking Docker env loading
Browse files- order_agent_worker.py +2 -4
order_agent_worker.py
CHANGED
|
@@ -15,11 +15,9 @@ from order_worker_info import IDENTITY, MISSION, NATURE, RESOURCES, CONFLICT_PRO
|
|
| 15 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 16 |
logger = logging.getLogger(__name__)
|
| 17 |
|
| 18 |
-
from dotenv import load_dotenv
|
| 19 |
-
#
|
| 20 |
load_dotenv()
|
| 21 |
-
# Also try loading from specific integration file if main fails
|
| 22 |
-
load_dotenv(r"c:\Users\Administrator\3D Objects\ALTYZEN\env.agi.integration")
|
| 23 |
|
| 24 |
# Validate API Key immediately
|
| 25 |
api_key = os.getenv("OPENROUTER_API_KEY")
|
|
|
|
| 15 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 16 |
logger = logging.getLogger(__name__)
|
| 17 |
|
| 18 |
+
from dotenv import load_dotenv
|
| 19 |
+
# Load .env from current directory (works in both Windows dev and Linux Docker)
|
| 20 |
load_dotenv()
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Validate API Key immediately
|
| 23 |
api_key = os.getenv("OPENROUTER_API_KEY")
|