Files
cnc_wams/wasm-port/runtime/workers/python-remap-pyodide-provider.js
2026-07-10 21:26:42 -04:00

12 lines
445 B
JavaScript

import { loadPyodide } from "../third_party/pyodide/pyodide.mjs";
import { createLinuxCncPythonRemapPyodideProvider } from "../sdk/src/python-remap-pyodide-provider.js";
const indexURL = new URL("../third_party/pyodide/", import.meta.url);
const sourceBaseUrl = new URL("../../../linuxcnc/", import.meta.url);
self.linuxCncPythonRemapRuntimeProvider = createLinuxCncPythonRemapPyodideProvider({
loadPyodide,
indexURL,
sourceBaseUrl,
});