[Pydev-users] [Users] Eclipse path variables problem
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2010-08-23 20:06:41
|
The following forum message was posted by jonathangossage at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3822328: I need to use an external source library and add it to my PYTHONPATH in a way that allows the .pydevproject file to be checked into an SCM and used in multiple workspaces on different computers where the path to the external source directory varies. What I did was to create an Eclipse path variable in Windows->Preferences->General->Workspace->Linked Resources. Then in the PyDev - PYTHONPATH project properties page on the External Libraries tab I added a path using the \"Add based on variable\" button and entering ${MY_VARIABLE} where MY_VARIABLE was the name of the path variable I defined earlier. However, the Pydev Package Explorer view shows an Eclipse error with the following text: Invalid external source folder specified: ${MY_VARIABLE}. Am I doing something wrong or is there a potential problem with Pvdev or Eclipse as it looks as if Eclipse is not expanding the variable even though it is stored in .pydevproject. I am running on Eclipse 3.6 with Pydev 1.6.1 running on Ubuntu 10.04 Here is the contents of .pydevproject [code]<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> <?eclipse-pydev version=\"1.0\"?> <pydev_project> <pydev_property name=\"org.python.pydev.PYTHON_PROJECT_INTERPRETER\">python</pydev_property> <pydev_property name=\"org.python.pydev.PYTHON_PROJECT_VERSION\">python 2.6</pydev_property> <pydev_pathproperty name=\"org.python.pydev.PROJECT_SOURCE_PATH\"> <path>/test/src</path> </pydev_pathproperty> <pydev_pathproperty name=\"org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH\"> <path>${PYMT_SOURCE}</path> </pydev_pathproperty> </pydev_project>[/code] |