Refactor the pyscript python package. (#1713)

This commit is contained in:
Antonio Cuni
2023-09-15 11:57:06 +00:00
committed by GitHub
parent 840bc803b7
commit 5191c45113
10 changed files with 54 additions and 73 deletions

View File

@@ -82,7 +82,7 @@ const registerModule = ({ XWorker: $XWorker, interpreter, io }) => {
}
// enrich the Python env with some JS utility for main
interpreter.registerJsModule("_pyscript_js", {
interpreter.registerJsModule("_pyscript", {
PyWorker,
get target() {
return isScript(currentElement)