2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

eclipse: use standard variable ${PROJECT_DIR_NAME} in pydev configuration instead of hardcoded name for better portability

This commit is contained in:
fedepell 2017-05-03 09:57:23 +02:00 committed by Thomas Nagy
parent acb0420313
commit ac4cd579e6

View File

@ -278,7 +278,7 @@ class eclipse(Build.BuildContext):
prop = self.add(doc, pydevproject, 'pydev_pathproperty',
{'name':'org.python.pydev.PROJECT_SOURCE_PATH'})
for i in user_path:
self.add(doc, prop, 'path', '/'+appname+'/'+i)
self.add(doc, prop, 'path', '/${PROJECT_DIR_NAME}/'+i)
doc.appendChild(pydevproject)
return doc