re-arrange pythonpath in pydev-eclipse?

柔情痞子 提交于 2019-12-10 18:45:19

问题


I'm using pydev in eclipse.

I was hoping that pydev would first use the python classes I develop in my source dir. but since I also install the built egg into system dir, pydev also picks up the classes from system dir.

the problem is that pydev uses system dir first in its python path. so after I installed a buggy version, and debug through pydev, and made the necessary changes in local sourcecode, it does not take effect, since the installed egg is not changed. or in the reverse case, as I was debugging, pydev takes me to the egg files, and I modify those egg files, so the real source code is not changed.

so How could I let pydev rearrange pythonpath order? (just like eclipse does for java build classpath) ?

thanks yang


回答1:


if you are using setuptools, you can try running sudo python setup.py develop on the egg as well as adding project dependencies between the two in Eclipse



来源:https://stackoverflow.com/questions/13459647/re-arrange-pythonpath-in-pydev-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!