2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

eclipse: create the pydev python path configuration from the waf setup so the symbols can be correctly resolved in the IDE

This commit is contained in:
fedepell 2017-05-03 13:21:33 +02:00 committed by Thomas Nagy
parent ac4cd579e6
commit 71d73d09dd

View File

@ -60,6 +60,14 @@ class eclipse(Build.BuildContext):
if not isinstance(tg, TaskGen.task_gen):
continue
# Add local Python modules paths to configuration so object resolving will work in IDE
if 'py' in tg.features:
pypath = tg.path.relpath()
py_installfrom = getattr(tg, 'install_from', None)
if py_installfrom:
pypath += os.sep + py_installfrom
pythonpath.append(pypath)
tg.post()
if not getattr(tg, 'link_task', None):
continue