[wingide-users] sys.path differs between Wing and terminal

Ofer ofer.bartal at weizmann.ac.il
Mon Oct 28 02:16:32 MDT 2013


Hi,

I'm having some weird sys.path issues where the sys.path differs between
Wing and the terminal.
Below are the outputs of "pprint(sys.path)" on both. I've highlighted the
differences.
Perhaps you know where the difference originates from?
I would like the sys.path to be the same on both.

Thanks,
Ofer

*terminal:*
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 sys
>>> from pprint import pprint
>>> pprint(sys.path)
['',
 '/usr/local/lib/python2.7/dist-packages/mercurial-2.6.3-py2.7-linux-x86_64.egg',
*
 '/home/oferb/workspace/il.ac.wis.cs.rovtool.blender/ros/hydro/catkin_ws/devel/lib/python2.7/dist-packages',
*
* '/opt/ros/hydro/lib/python2.7/dist-packages',*
* '/home/oferb/opt/morse/lib/python3.2/site-packages',*
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
>>>

*Wing:*
pprint(sys.path)
[*'/home/oferb/workspace/il.ac.wis.cs.rovtool.blender/bp_drone',*
 '/usr/local/lib/python2.7/dist-packages/mercurial-2.6.3-py2.7-linux-x86_64.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20131028/6b8d24ec/attachment.html>


More information about the wingide-users mailing list