mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-13 18:14:09 +00:00
Since we are using jsdom, the emscripten generated code doesn't use the node filesystem lookup for .wasm files. But then it falls back to node for file:// urls, but this doesn't work because node treats file: as a drive letter. We can work around this by modifying the node path.normalize() function to return the correct path. Fixes: https://github.com/pybricks/pybricks-code/issues/1584