HI i just run over a curious thing.
In my .bashrc looks like this:
PYTHONPATH=$PYTHONPATH:/home/pschu/ParaView-3.14.1-Build/Utilities/VTKPythonWrapping/site-packages:home/pschu/ParaView-3.14.1-Build/bin
ParaView_DIR=/home/pschu/ParaView-3.14.1-Build
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/pschu/ParaView-3.14.1-Builds/bin
So now when i start the python interpreter and type following:
>>>os.environ['PYTHONPATH']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'PYTHONPATH'
same error with ParaView_DIR, but LD_LIBRARY_PATH has the additional Path.
in the shell they exist.
echo $PYTHONPATH
:/home/pschu/ParaView-3.14.1-Build/Utilities/VTKPythonWrapping/site-packages:home/pschu/ParaView-3.14.1-Build/bin
now when i do
export PYTHONPATH=$PYTHONPATH
before I run the python interpreter it works.
What's happening?