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:
parent
ac4cd579e6
commit
71d73d09dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user