[wingide-users] Environment in terminal vs Wing
support at wingware.com
Mon Oct 28 08:38:24 MDT 2013
> 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,
> 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
> 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"]
> I would like the environments in both the terminal and Wing to be the
> Can you suggest what I should do?
How are you launching Wing? If you start it from the teminal with
wing5.0 it should inherit the environment there. If you start it from a
menu or icon it'll inherit the environment set up by the launcher, which
may be different because it probably doesn't read your
Please let me know if this doesn't help.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users