[Pydev-code] inconsistent pythonpaths
Brought to you by:
fabioz
From: j b. k. <jbr...@gm...> - 2011-04-27 20:33:05
|
Hi, I'm wondering if this is a bug...I've been using pydev for many years and have consistently had problems with the python path...for example, I have a script I'm running which pydev says is run with the following pythonpath: /home/jbk/helios/eclipse/plugins/org.python.pydev_1.6.5.2011020317/PySrc/pydev_sitecustomize:/home/jbk/workspace/parnasis/src:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/usr/lib/python2.6/dist-packages/PIL:/usr/lib/python2.6/dist-packages/gst-0.10:/usr/lib/python2.6/dist-packages/gtk-2.0:/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/dist-packages:/usr/local/lib/python2.6/dist-packages/PyCifRW-3.1.4p01-py2.6-linux-x86_64.egg:/usr/local/lib/python2.6/dist-packages/matter-0.8_r983_20110415-py2.6.egg Note I've wired the project with a source directory /home/jbk/workspace/parnasis/src. However, at the top of the script i import sys and print sys.path: ['/home/jbk/workspace/parnasis/useCases/mdDos/ysz/ysz12', '/usr/local/lib/python2.6/dist-packages/dj ango_evolution-0.6.3alpha0-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.eg g', '/usr/local/lib/python2.6/dist-packages/Jinja2-2.5.5-py2.6.egg', '/usr/local/lib/python2.6/dist- packages/matter-0.8_20110426-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/parnasis-0.5-py2.6. egg', '/usr/local/lib/python2.6/dist-packages/plotlib-0.3-py2.6.egg', '/home/jbk/workspace/parnasis/ src', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist -packages/gst-0.10', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/python2.6/dist-packages/w x-2.8-gtk2-unicode', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/lib-old', '/usr/lib/pytho n2.6/lib-tk', '/usr/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/dist-packages', '/usr/loca l/lib/python2.6/dist-packages/PyCifRW-3.1.4p01-py2.6-linux-x86_64.egg', '/usr/local/lib/python2.6/di st-packages/matter-0.8_r983_20110415-py2.6.egg'] Why are they different? In this one, we see the first entry is the directory where the script is located, which is logical....next I would expect to see the rest of the entries above..unfortunately I see a lot of eggs, some of which conflict with my source directory '/home/jbk/workspace/parnasis/src' which i think should be the second or third entry...any explanations? brandon |