title: How to check is it a Retina Display in Python or Terminal?
body: <p>I use the Python module <a href="https://github.com/asweigart/pyautogui/" rel="nofollow noreferrer">pyautogui</a>.<br>
  It has problems with Retina display's and i must check if the script runs on a computer with a retina display.</p>
  
  <p>I found this code, but it's not working (anymore).</p>
  
  <pre class="lang-py prettyprint-override"><code>if subprocess.call("system_profiler SPDisplaysDataType | grep 'retina'", shell=True) == 0:
          IS_RETINA = True
  </code></pre>
  
  <p>Is there any other command to check if the computer has a retina display?<br>
  I use OSX Mojave 10.14.6</p>