From bc87101bc8088844d475d81ce4a3903454a07558 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Tue, 1 Jul 2025 10:09:54 +0800 Subject: [PATCH] feat: add MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS env. --- apps/maxkb/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/maxkb/conf.py b/apps/maxkb/conf.py index 2430e120a..604d572fe 100644 --- a/apps/maxkb/conf.py +++ b/apps/maxkb/conf.py @@ -101,6 +101,9 @@ class Config(dict): def get_log_level(self): return self.get('LOG_LEVEL', 'DEBUG') + def get_sandbox_python_package_paths(self): + return self.get('SANDBOX_PYTHON_PACKAGE_PATHS', '/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages') + def get_session_timeout(self): return int(self.get('SESSION_TIMEOUT', 28800))