There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
os.environ['PYTHONPATH'] is always empty
1) Set PYTHONPATH in your system environment variables to some path.
2) Open Visual Studio, and edit the Environment Options for installed Python Interpreter via Options -> Python Tools -> Environment Options, and set the "Path Environment Variable" field to PYTHONPATH.
3) Create an Interactive Window for this prompt.
4) import os, and type os.environ['PYTHONPATH']
The result is always the empty string, no matter what your system environment variable is. It seems like the contents of this environment variable should be appended to sys.path and left intact. Instead it seems the contents of the variable are cleared, and
not appended to sys.path.
It may be more intuitive and flexible from the user's point of view if the Python Environment options simply allowed you to add an arbitrary list of directories, and not deal with the system environment variable at all.