mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
* Fix #2040 - Polyscript update to provide config dictionary * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
26 lines
738 B
HTML
26 lines
738 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>PyScript Next Plugin</title>
|
|
<link rel="stylesheet" href="../dist/core.css">
|
|
<script type="module" src="../dist/core.js"></script>
|
|
<mpy-config src="config-url/config.json"></mpy-config>
|
|
<script type="mpy">
|
|
from pyscript import config
|
|
if config["files"]["{TO}"] != "./runtime":
|
|
raise Exception("wrong config tree")
|
|
|
|
from runtime import test
|
|
</script>
|
|
<script type="mpy" worker>
|
|
from pyscript import config
|
|
if config["files"]["{TO}"] != "./runtime":
|
|
raise Exception("wrong config tree")
|
|
|
|
from runtime import test
|
|
</script>
|
|
</head>
|
|
</html>
|