mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Code Node): Consistent redirection of stdout for JS and Python sandboxes (#6818)
Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
committed by
GitHub
parent
34df8b6238
commit
f718c2291f
@@ -67,10 +67,7 @@ export class PythonSandbox extends Sandbox {
|
||||
globalsDict.set(key, value);
|
||||
}
|
||||
|
||||
await pyodide.runPythonAsync(`
|
||||
if 'printOverwrite' in globals():
|
||||
print = printOverwrite
|
||||
`);
|
||||
pyodide.setStdout({ batched: (str) => this.emit('output', str) });
|
||||
|
||||
const runCode = `
|
||||
async def __main():
|
||||
|
||||
Reference in New Issue
Block a user