title: Unable to execute python command in SAP BODS
body: <p>I tried executing a python command using ksh in SAP BODS script to run a program called "zzz.py" in the BODS server:</p>
  
  <pre><code>print(exec('ksh', '-c "python --version"', 8));
  print(exec('ksh', '-c "python zzz.py"', 8));
  </code></pre>
  
  <p>However, upon executing the script, I got the following output:</p>
  
  <pre><code>3850    2990602048  PRINTFN 11/2/2017 4:26:17 PM    0: Python 2.7.9
  3850    2990602048  PRINTFN 11/2/2017 4:26:17 PM    1: Could not find platform independent libraries &lt;prefix&gt; Could not find platform dependent libraries &lt;exec_prefix&gt;
  3850    2990602048  PRINTFN 11/2/2017 4:26:17 PM    Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;] ImportError: No module named site
  </code></pre>
  
  <p>While I proceeded to add the <code>export PYTHONHOME=/usr/bin/python</code>, and executed the <code>printenv</code> command, the PYTHONHOME path is not shown.</p>
  
  <p>I went ahead to use SSH to access the server via PuTTy, and executing the command works perfectly. However, when running the <code>python --version</code> command, it shows that my version in 2.7.5 as opposed to the one shown in BODS. I tried adding the PYTHONHOME path as well, but it did not help in the BODS (and instead i cannot run the python command in my SSH session, which of course i went to <code>unset</code> it and SSH session works normally now)</p>
  
  <p>May I seek some help in this? THANKS!</p>