Spaces:
Sleeping
Sleeping
File size: 878 Bytes
52f4d1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import os
import logging
from pathlib import Path
from aworld.utils.common import get_local_ip
####################################
# Load .env file
####################################
try:
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv("./.env"))
except ImportError:
print("dotenv not installed, skipping...")
# Define log levels dictionary
LOG_LEVELS = {
'DEBUG': logging.DEBUG,
'INFO': logging.INFO,
'WARNING': logging.WARNING,
'ERROR': logging.ERROR,
'CRITICAL': logging.CRITICAL
}
ROOT_DIR = Path(__file__).parent # the path containing this file
AGENTS_DIR = os.getenv("AGENTS_DIR", "./aworldspace/agents")
ROOT_LOG = os.path.join(os.getenv("LOG_DIR_PATH", "logs") , get_local_ip())
WORKSPACE_TYPE = os.environ.get("WORKSPACE_TYPE", "local")
WORKSPACE_PATH = os.environ.get("WORKSPACE_PATH", "./data/workspaces")
|