mirror of https://gitlab.com/ita1024/waf.git
5d3576af45
When a tool cannot be loaded the wrong path was displayed on the error message. sys.path was always displayed but the actual path used depends on tooldir being passed and on the value of with_sys_path parameter. I put the exception handling (raising the fatal) inside load_tool itself as this is the only place where the exact path is known, without having to recalculate it outside. To be able to use fatal there also the ctx has to be passed from the various points. In this way all load_tool exceptions are caught and reported, while before an exception during configure was not caught for example, just during the options. |
||
---|---|---|
.. | ||
Tools | ||
extras | ||
Build.py | ||
ConfigSet.py | ||
Configure.py | ||
Context.py | ||
Errors.py | ||
Logs.py | ||
Node.py | ||
Options.py | ||
Runner.py | ||
Scripting.py | ||
Task.py | ||
TaskGen.py | ||
Utils.py | ||
__init__.py | ||
ansiterm.py | ||
fixpy2.py | ||
processor.py |