8000 Fix #1812 - Avoid duplicated pyscript module by WebReflection · Pull Request #1813 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Fix #1812 - Avoid duplicated pyscript module #1813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Fix #1812 - Avoid duplicated pyscript module #1813

merged 1 commit into from
Oct 26, 2023

Conversation

WebReflection
Copy link
Contributor

Description

This MR avoids duplicated FileSystem module pollution on main, as that's already part of the code in main hooks story and as that fails, actually rightly so somehow, in MicroPython only.

Changes

  • remove the manual need to pollute the main thread with code that already runs on codeBeforeRun thanks to the shared dance and behavior of latest changes.

Checklist

  • All tests pass locally
  • I have updated docs/changelog.md
  • I have created documentation for this(if applicable)

@WebReflection
Copy link
Contributor Author
WebReflection commented Oct 26, 2023

To whom it might concern, this fixes the general bug on MicroPython on main, but it doesn't fix the underlying issue MicroPython, differently from Pyodide, throws unexpected errors when executed multiple times on main.

@WebReflection WebReflection merged commit cd95a42 into pyscript:main Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3C35
Development

Successfully merging this pull request may close these issues.

2 participants
0