title: How can I target my mozilla profile on Mac OS the same way I'm targeting it in Windows?
body: <p>I have a working python script that'll run perfectly on windows 10. It relies on python, selenium, and my current firefox profile. Here's the code i'm relying on to grab my profile in windows:</p>
  <pre><code>mozilla_profile = os.path.join(os.getenv('APPDATA'), r'Mozilla\Firefox')
  mozilla_profile_ini = os.path.join(mozilla_profile, r'profiles.ini')
  profile = configparser.ConfigParser()
  profile.read(mozilla_profile_ini)
  data_path = os.path.normpath(os.path.join(mozilla_profile, profile.get('Profile0', 'Path')))
  </code></pre>
  <p>I don't know how to make this work in Mac OS. I guess the os.path.join function doesn't work the same. Is there any way to do this?</p>