modified: backend/src/controllers/dynamicApiController.ts
modified: backend/src/server.ts modified: backend/src/services/ScriptExecutor.ts
This commit is contained in:
@@ -112,7 +112,9 @@ result = __user_script()
|
||||
print(json.dumps(result))
|
||||
`;
|
||||
|
||||
const python = spawn('python', ['-c', wrapperCode]);
|
||||
// Try python3 first (Linux), fallback to python (Windows)
|
||||
const pythonCommand = process.platform === 'win32' ? 'python' : 'python3';
|
||||
const python = spawn(pythonCommand, ['-c', wrapperCode]);
|
||||
let output = '';
|
||||
let errorOutput = '';
|
||||
let queryRequests: any[] = [];
|
||||
|
||||
Reference in New Issue
Block a user