简体   繁体   中英

re-arrange pythonpath in pydev-eclipse?

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

如果您正在使用setuptools,您可以尝试在egg上运行sudo python setup.py develop以及在Eclipse中添加两者之间的项目依赖关系

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM