title: python: os.getenv returns none with sudo?
body: <p>I've set environment variable <code>LIBRARY_PATH</code> in <code>/etc/bash.bashrc</code> by adding <code>export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH</code> at the end.</p>
  
  <p>When I try to get the env-variable from python:</p>
  
  <pre><code>ipython
  import os
  print os.getenv('LIBRARY_PATH')
  </code></pre>
  
  <p>Everything works well, it prints <code>/usr/local/cuda/lib64:</code>.</p>
  
  <p>BUT when I invoke ipython with <code>sudo</code>:</p>
  
  <pre><code>sudo ipython
  import os
  pront os.getenv('LIBRARY_PATH')
  </code></pre>
  
  <p>I get nothing. I guess this is about env-variables accross users, but what is the ditails? I set <code>LIBRARY_PATH</code> in <code>/etc/bash.bashrc</code> which is said to be the 'system wide bashrc file'.</p>
  
  <p>So how can I get the correct env-variable with sudo in python ?</p>