modelbuilder: `identify_file` works with directories and module names
authorJean Privat <jean@pryen.org>
Tue, 18 Mar 2014 18:44:17 +0000 (14:44 -0400)
committerJean Privat <jean@pryen.org>
Tue, 18 Mar 2014 18:44:17 +0000 (14:44 -0400)
commit399ed93a6c588aa52c415d0abddfa058ce28ff2b
treed36e3dc213b2025688a3c91db1c571e900149711
parent7b16d45587ed2d3254d2e8a93c08ff8eadcb977f
modelbuilder: `identify_file` works with directories and module names

* `cvs` will get `../lib/csv.nit`
* `curl` will get `../lib/curl/curl.nit`
* `some/path/` could get `some/path/path.nit`

This enable some fun the the option `-m`:

    $ nitg someprog.nit -m android

Signed-off-by: Jean Privat <jean@pryen.org>
src/modelbuilder.nit