Closed pjreiniger closed 2 weeks ago
Consider using pathlib instead of wrangling names manually. The trailing backslash vs no trailing backslash can bite someone who tries to update it in the future.
Do explicitly set utf-8 as the encoding on file operations in case someone tries to run this on Windows. Python on Windows will switch to utf-8 by default (ignoring locale) in 2026.
Fixes #6739