mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 10:17:23 -05:00
19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
import bridge from "https://esm.run/@pyscript/bridge";
|
|
|
|
// for local testing purpose only
|
|
const { searchParams } = new URL(location.href);
|
|
|
|
// the named (or default) export for test.py
|
|
export const ffi = bridge(import.meta.url, {
|
|
pyscript: "2025.8.1",
|
|
env: searchParams.get("env"),
|
|
type: searchParams.get("type") || "mpy",
|
|
worker: searchParams.has("worker"),
|
|
config: searchParams.has("config") ?
|
|
({
|
|
files: {
|
|
"./sys_version.py": "./sys_version.py",
|
|
},
|
|
}) : undefined,
|
|
});
|