title: Setting PYTHONPATH on Windows under Anaconda without elevated privileges
body: <p>I have a Windows 7 machine with a 32-bit install of anaconda, installed for the local user. The install works as expected: it allows me to run python and pip from the command line, switch environments, etc.</p>
  
  <p>I also have a library of code that I wrote sitting in My Documents. I would like to add an entry like <code>C:\Users\username\Documents\MyLib</code> to my <code>PYTHONPATH</code>. This would normally not be an issue, but I do not have the elevated privileges that this (work-issued) computer requires to modify environment variables through the Windows UI.</p>
  
  <p>I am looking for a way to set PYTHONPATH. I only need it to work within the anaconda environment (i.e., I just want to be able to import my library using that particular interpreter). Solutions using <code>sys.path.append</code> within my scripts are not acceptable. I am, however, OK with doing <code>sys.path.append</code> in some script that will be executed automatically whenever I run <code>python myscript.py</code>.</p>
  
  <p>I suspect that there is a way to get around the privilege restrictions imposed through the Windows UI though, because running <code>conda info -a</code> shows that the Anaconda installer was able to insert items into the <code>PATH</code>, specifically, <code>C:\Users\username\AppData\Local\Continuum\Anaconda3\Library\bin;...</code>.</p>