问题
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