title: How to run script from environment in Python?
body: <p>I have got recommendations to run Python script on Linux Server using this sequence:</p>
  
  <p>1) source <em>path to  environment</em> </p>
  
  <p>2) python <em>path to python script</em> </p>
  
  <p>So, I need to call this script from <code>php</code> command <code>system</code>:</p>
  
  <p>Should it be like this?</p>
  
  <pre><code>system("source *path to  environment* python *path to python script*")
  </code></pre>
  
  <p>How to set environment and then run script?</p>