Merge: `nit_dir` as a service
authorJean Privat <jean@pryen.org>
Wed, 23 Apr 2014 20:48:32 +0000 (16:48 -0400)
committerJean Privat <jean@pryen.org>
Wed, 23 Apr 2014 20:48:32 +0000 (16:48 -0400)
ToolContext exposes a `nit_dir` service that tools can use.
It is so good that, now, the `bin` directory can be directly put in the PATH on most system while `NIT_DIR` is unset.

Previous direct users of `NIT_DIR` are transformed to use the new service.
Also, `nitunit` uses the new service to find the compiler instead of a hard-coded path.

Closes #392
Closes #408

Pull-Request: #412
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>


Trivial merge