I have a program that relies on various different .docx templates, browser drivers, api keys, etc. On Windows, I simply place everything in C:/Program Files and it works across all machines despite user login name. However, with Mac OS, it's a bit more frustrating... Here's how I grab my files in Windows:
file1 = ('C:\\Program Files\\MY TOOL\\Forms\\MYFORM\\whatever1.docx')
file2 = ('C:\\Program Files\\MY TOOL\\Forms\\MYOTHERFORMS\\whatever2.docx')
On Mac OS, my paths look more like this:
profile = /Users/MYNAMEHERE/Library/Application Support/Firefox/Profiles/.....etc
How can I either wildcard the part with my unique username, or target my directories more easily?