The following forum message was posted by eswierk at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3953077:
We use a script to install Eclipse and set up a workspace automatically on each
user's machine. The first time the user starts Eclipse, Pydev should be set
up to use a specific Python interpreter and path--no clicking required.
At first I tried to implement the initial setup in an Eclipse plugin, which
worked, but seems an awfully complex way to solve such a simple problem. Pydev
already knows how to read its settings from a file. I just need to populate
the settings file and then cause Pydev to do its normal scan of the path.
I figured out a rather hacky but simple way to initialize the Pydev settings
| sed 's/INS_PATH$//g;s/OUT_PATH$//g;s/^EXECUTABLE:/Executable\\:/g' | tr -d
'\n' | cat <(echo -en
- <(echo '&&&&&')
This only works in a fresh workspace; if it already contains Pydev metadata,
then Pydev doesn't try to scan the path and the user is stuck doing it manually.
I thought I'd share this in case anyone else is trying to solve a similar