title: Run Python script with Automator // why does it only work if I include export PATH=/usr/local/bin:$PATH and what does it mean?
body: <p>I was trying to run a Python script via Mac's Automator and the command is very straight forward: </p>
  
  <p><strong>"cd /Users/myname/Desktop/project &amp;&amp; python3 myprojectapp.py".</strong> </p>
  
  <p>However, every time I tried to run it, Automator raised an error such as <em>ModuleNotFoundError</em>. This was however, impossible since I had all libraries (e.g. Pandas) installed and running the command in the Terminal as written above worked flawlessly. </p>
  
  <p>Now, I've read somewhere for a similar problem to just include: 
  <strong>"export PATH=/usr/local/bin:$PATH"</strong> before the command and it worked. Now, before I go on with my life, I would like to understand what exactly this extra line does and how it affects Automator to the point of making the script work. </p>
  
  <p>Thank you in advance! </p>