title: Application's Datapath - os.environ
body: <p>I am developing a Python Desktop application and I have been able to get it to work just fine, I am just having trouble getting classes to locate the database. </p>
  
  <p>This application was build on the Windows platform and used the following code to create the database. </p>
  
  <pre><code>appDataPath = os.environ["APPDATA"] + "\\FolderName\\"
  </code></pre>
  
  <p>However, in mac, there is no APPDATA and I have been using HOME instead, but it creates the files on build as FolderNameapplication.db which is a real hassle. </p>
  
  <p>The database is now residing on the Desktop (HOME) after removing the `"\FolderName\" extension and I need the appDataPath variable to point at the database. How can I achieve this?</p>
  
  <p>Thanks</p>