From 675ffb46a6ed13738731b51e2cdf1f3604d6dd1f Mon Sep 17 00:00:00 2001 From: zhiyong Date: Sat, 10 May 2025 23:03:41 +0800 Subject: [PATCH] update logs dir and data dir --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 9d59143..e874180 100644 --- a/src/config.py +++ b/src/config.py @@ -16,14 +16,14 @@ class Config: MARKET_CLOSE_TIME = os.environ.get("MARKET_CLOSE_TIME", "15:10") # Logging - LOG_DIR = "../logs" + LOG_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "logs") LOG_LEVEL = "INFO" LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' LOG_MAX_BYTES = 10 * 1024 * 1024 # 10MB LOG_BACKUP_COUNT = 5 # strategy data - DATA_DIR = "../data" + DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "data") # API Rate limiting RATE_LIMIT_REQUESTS = 100