I have a simple API running in Flask on a Raspberry Pi. The Pi has Debian (buster) installed. In the API, I am making calls to Twilio. I'm storing sensitive info like the auth token in environment ...
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).