mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 19:53:00 -05:00
Split pyscript into multiple files (#1338)
In the future this should help us leak fewer names into the pyscript namespace. Rather than assigning to the pyscript module from JavaScript, we mount a separate private JS module with the extra names needed by PyScript. I moved a bit more interpeter intialization into remote_interpreter. I added a deprecation warning for `pyscript.js`: the proper way to access `js` is `import js`. --------- Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
This commit is contained in:
@@ -16,10 +16,10 @@ sys.path.append(str(python_plugins_source))
|
||||
|
||||
|
||||
# patch pyscript module where needed
|
||||
import pyscript # noqa: E402
|
||||
import pyscript_plugins_tester as ppt # noqa: E402
|
||||
from pyscript import _plugin # noqa: E402
|
||||
|
||||
pyscript.define_custom_element = ppt.define_custom_element
|
||||
_plugin.define_custom_element = ppt.define_custom_element
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
||||
Reference in New Issue
Block a user