feat: update Python package paths in tool_code.py and Dockerfile

This commit is contained in:
CaptainB 2025-06-24 13:56:11 +08:00
parent af6f88a616
commit d459beb1a0
2 changed files with 1 additions and 1 deletions

View File

@ -46,6 +46,7 @@ try:
path_to_exclude = '/opt/py3/lib/python3.11/site-packages'
sys.path = [p for p in sys.path if p != path_to_exclude]
sys.path.append('/opt/maxkb-app/sandbox/python-packages')
sys.path.append('/opt/maxkb/python-packages')
env = dict(os.environ)
for key in list(env.keys()):
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG')):

View File

@ -57,7 +57,6 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
MAXKB_SANDBOX=1 \
PATH=/opt/py3/bin:$PATH \
PIP_TARGET=/opt/maxkb/python-packages \
PYTHONPATH=/opt/maxkb/python-packages \
PYTHONUNBUFFERED=1
WORKDIR /opt/maxkb-app