updated python package testing to json format

This commit is contained in:
2025-10-22 00:20:53 +02:00
parent 980cfab637
commit eb8945ae97
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ COPY backend/src/ ./src/
RUN npm run build
# Verify Python and OR-Tools installation
RUN ["python", "-c", "from ortools.sat.python import cp_model; print(\"OR-Tools installed successfully\")"]
RUN python -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')"
# Frontend build stage
FROM node:20-alpine AS frontend-builder

View File

@@ -3,7 +3,7 @@ import path from 'path';
export function runPythonScript(scriptPath, args = []) {
return new Promise((resolve, reject) => {
const pythonProcess = spawn('python3', [scriptPath, ...args]);
const pythonProcess = spawn('python', [scriptPath, ...args]);
let stdout = '';
let stderr = '';