Skip to content

Conversation

@sepro
Copy link
Owner

@sepro sepro commented Dec 18, 2025

No description provided.

The load() method now uses os.path.abspath() to convert the filename to an
absolute path before extracting the directory. This ensures that screenshot
paths are correctly validated relative to the JSON file location, regardless
of where the validate, add-game, or add-record commands are called from.

Previously, when calling validate with a relative path like './data/records.json',
the directory would be extracted as a relative path, which would fail when
changing directories for FilePath validation.

This fix makes the load() method consistent with the add_record_to_file() method,
which already uses os.path.abspath() for the same purpose.
…on versions

Added continue-on-error to the coverage check step to prevent workflow failures
when the coverage badge changes on Python versions other than 3.12. The badge
will still be updated only on Python 3.12 as intended.
@sepro sepro merged commit 55bd456 into main Dec 18, 2025
10 of 13 checks passed
@sepro sepro deleted the claude/fix-screenshot-path-validation-HO9QJ branch December 18, 2025 20:52
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.

3 participants