How to define an external source folder in .pydevproject?

为君一笑 提交于 2019-12-12 17:13:53

问题


Are there any examples of how to add an external source directory to the pythonpath in the .pydevproject file? The pydev UI appears to require string substitution variables for this, which I have not been able to get working.

Thanks!

-Travis


回答1:


You can add them as External Libs.

Project Properties > Pydev - PYTHONPATH > External Libraries > Add Source Folder




回答2:


For completeness, here's the .pydevproject code that gets this working:

<pydev_pathproperty name="org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH">
    <path>/home/travis/git/apollo/util/src/java</path>
    ...
</pydev_pathproperty>


来源:https://stackoverflow.com/questions/12519327/how-to-define-an-external-source-folder-in-pydevproject

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