nitg: fixed conflicting module error when env var NIT_DIR is specified and compiling...
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 9 Sep 2013 17:52:53 +0000 (13:52 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 9 Sep 2013 17:52:53 +0000 (13:52 -0400)
commite0e61cdd54e1e22f6b7457b26143ad0ace44e5ac
treeb1899bb1bafc93366ddd460631ea090efe697d8e
parentbc7ae697c31d705a744aafda9a57d0dcee0cc039
nitg: fixed conflicting module error when env var NIT_DIR is specified and compiling in /bin

Fixes issue #68:

NIT_DIR env var creates module conflicts when compiling in /nit dir

With NIT_DIR env var setted to /home/ME/nit/, when I compile from /nit/bin like:
    nitg something.nit
I get a compile error saying that there is a module conflict between /home/ME/nit/lib/module1.nit and ../lib/module1.nit.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/modelbuilder.nit
tests/tests.sh