File tree 1 file changed +4
-3
lines changed
pyscript.core/src/plugins 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,15 @@ addEventListener("py:ready", (event) => {
89
89
xworker.sync.pyterminal_write = t.write;
92FC
90
90
91
91
// XXX: I know that the following lines don't work, but this is more or
92
- // lesswhat I would like to happen
93
- pyScript.io.stdout = (s, ...rest) => {
92
+ // less what I would like to happen
93
+ const something = ???;
94
+ something.io.stdout = (s, ...rest) => {
94
95
// this is JS code, and we cannot send arbitrary JS code from the main
95
96
// to the worker. So maybe a solution is to hardcode this logic
96
97
// directly inside the worker code?
97
98
xworker.sync.pyterminal_write(s);
98
99
}
99
- pyScript .io.stderr = (s, ...rest) => {
100
+ something .io.stderr = (s, ...rest) => {
100
101
xworker.sync.pyterminal_write(s);
101
102
}
102
103
something.runPython(`
You can’t perform that action at this time.
0 commit comments