[wingide-users] Environment in terminal vs Wing

Ofer ofer.bartal at weizmann.ac.il
Mon Oct 28 03:16:55 MDT 2013


Hi,
I'm noticing differences in the environment variables in the terminal vs in
Wing.
I have set the project option "Use inherited environment" and so I would
expect them to be the same, but they are not.

For example, in Wing,
os.environ["PYTHONPATH"]
Traceback (most recent call last):
  File "/home/oferb/lib/wingide5.0/src/debug/tserver/_sandbox.py", line 1,
in <module>
    # Used internally for debug sandbox under external interpreter
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PYTHONPATH'

whereas in the terminal,
$ echo $PYTHONPATH
/opt/ros/hydro/lib/python2.7/dist-packages:/home/oferb/opt/morse/lib/python3.2/site-packages:

and also via python:
oferb at math306-pc:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ["PYTHONPATH"]
'/opt/ros/hydro/lib/python2.7/dist-packages:/home/oferb/opt/morse/lib/python3.2/site-packages:'


I would like the environments in both the terminal and Wing to be the same.
Can you suggest what I should do?

Thanks,
Ofer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20131028/86c48850/attachment.html>


More information about the wingide-users mailing list