Skip to content

Commit d459beb

Browse files
committed
feat: update Python package paths in tool_code.py and Dockerfile
1 parent af6f88a commit d459beb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

apps/common/utils/tool_code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def exec_code(self, code_str, keywords):
4646
path_to_exclude = '/opt/py3/lib/python3.11/site-packages'
4747
sys.path = [p for p in sys.path if p != path_to_exclude]
4848
sys.path.append('/opt/maxkb-app/sandbox/python-packages')
49+
sys.path.append('/opt/maxkb/python-packages')
4950
env = dict(os.environ)
5051
for key in list(env.keys()):
5152
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG')):

installer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
5757
MAXKB_SANDBOX=1 \
5858
PATH=/opt/py3/bin:$PATH \
5959
PIP_TARGET=/opt/maxkb/python-packages \
60-
PYTHONPATH=/opt/maxkb/python-packages \
6160
PYTHONUNBUFFERED=1
6261

6362
WORKDIR /opt/maxkb-app

0 commit comments

Comments
 (0)