title: Why gives the PYTHONPATH a different value? from cgi (apache) not similar to local
body: <p>I am looking how to import modules by setting the pythonpath.
  To check the paths python is looking at:</p>
  
  <pre><code>import sys
  print "modules will be searched in the following paths:"
  for path in sys.path:
      print path
  print "python version: " + sys.version
  </code></pre>
  
  <p>I added some extra paths in PYTHONPATH environment variable (windows gui), but when executing the code above as a cgi file in apache (in the browser), it does not show my added paths...(and indeed, it will not load modules from the missing paths)
  When I execute the code with python locally, all paths are shown (so that's ok).</p>
  
  <pre><code>#!C:\tools\programming\Python27\python.exe
  import cgi
  import cgitb
  cgitb.enable()
  print "Content-type: text/html" 
  print
  import sys
  
  #import timeOperations
  
  for path in sys.path:
      print path + "&lt;br&gt;"
  
  print "python version: " + sys.version
  print "&lt;html&gt;"
  print "&lt;center&gt;Lode doet het weer!&lt;/center&gt;"
  print "&lt;/html&gt;"
  </code></pre>
  
  <p>I did a computer reboot, no succes. There is also only one python version installed.</p>
  
  <p>Why gives the PYTHONPATH a different value? I don't know.
  Any help is appreciated!</p>
  
  <p>Lode</p>