From e2c3872fe314fb8c3e6a194931df6549cba95b08 Mon Sep 17 00:00:00 2001 From: SashegDev Date: Sat, 16 May 2026 16:51:06 +0000 Subject: [PATCH] fix: make BASE_DIR dynamic so script works from any directory --- aggregator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggregator.py b/aggregator.py index f15745c..9e40842 100644 --- a/aggregator.py +++ b/aggregator.py @@ -33,7 +33,7 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger("zernproxy") -BASE_DIR = "/opt/aggregator" +BASE_DIR = os.path.dirname(os.path.abspath(__file__)) SERVERS_CONF = os.path.join(BASE_DIR, "servers.conf") SETTINGS_CONF = os.path.join(BASE_DIR, "settings.conf") USERS_DB = os.path.join(BASE_DIR, "users.db")