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