Touchup examples#113
Merged
Merged
Conversation
This allows easy demos without prior setup, using tools that support PEP 723
inline metadata, e.g.:
git clone <url>
cd esper
uv run --script examples/pyglet_example.py
Unlike pyglet.resource, pygame.image.load() and sdl2.ext.load_image() do not
search relative to the script. This caused the latter two to fail when running
from a different dir like the repo root:
uv run --script examples/pygame_example.py # FileNotFoundError
cd examples
uv run --script pygame_example.py # ok
Now both cases work.
This doesn't change the benchmark, it was just annoying waiting ~0.4s for --help to return. Now should be instant.
This also conveniently prints to stderr instead of stdout. Return code is still 1.
Remove unnecessary header
Remove unnecessary header
Remove unnecessary header
Add space between different import types
Remove unnecessary header
Remove unnecessary header
benmoran56
approved these changes
Feb 1, 2026
Owner
|
Thank you for the PR. The small fixes are great. I hope you don't mind, but I opted to remove the PEP 723 related headers. |
Contributor
Author
No problem. Those interested can use e.g. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed a few minor things to make it easier to demo the examples as a curious passerby :)