os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
Nothing I can do seems to stop Claude from putting imports at function scope in Python. It's driving me mad! I asked why you keep _putting imports at test scope_. _I_ added the linter rule _and_ the ...