title: Python os cannot get path to Desktop on One Drive
body: <p>I am trying to get user's path to Desktop by using the following code:</p>
  
  <pre><code>desktop = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop') 
  
  d = datetime.datetime.today()
  
  newpath = desktop + '\\New_folder' + str(d.day) + '_' + str(d.month) + '_' + str(d.year)
  if not os.path.exists(newpath):
      os.makedirs(newpath)
  
  print('Desktop folder created:  ' + newpath)
  </code></pre>
  
  <p>For most users that works, but I recently got a case of a user who has everything on One Drive and their path is: 'C:\Users\User1\OneDrive - CompanyName\Desktop'.</p>
  
  <p>For these users, the script fails with this message: </p>
  
  <pre><code>FileNotFoundError: [WinError 3] The system cannot find the file specified 'C:\\Users\\User1\\Desktop\\New_folder_16_3_2020
  </code></pre>
  
  <p>How do I point python to their actual Desktop path, so that I can then work with that folder?</p>