Skip to content

PyGame - TOML + JSON absolute URL + input patch #2313

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 2 commits into from
Mar 11, 2025

Conversation

WebReflection
Copy link
Contributor

Description

This MR fixes an issue with not fully resolved URLs as config attribute + it patches the builtins.input function to avoid surprises, using the native js.prompt function as least surprise/solution.

Changes

  • enforced fully qualified url resolution for the config, when it's known
  • patched input so that it's usable as it's common for games to ask for inputs

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection
Copy link
Contributor Author

FYI the failing test case is now working as expected: https://pyscript.com/@agiammarchi/tsa-video-game-copy-copy/latest?files=index.html

The current npm version is https://cdn.jsdelivr.net/npm/@pyscript/core@0.6.39/dist/core.js

@WebReflection WebReflection merged commit b22f384 into pyscript:main Mar 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants