loader: restore -m with module name (eg -m android)
authorJean Privat <jean@pryen.org>
Tue, 21 Jul 2015 20:16:52 +0000 (16:16 -0400)
committerJean Privat <jean@pryen.org>
Tue, 21 Jul 2015 20:36:33 +0000 (16:36 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 153bf9f..4e0e2e8 100644 (file)
@@ -353,7 +353,7 @@ redef class ModelBuilder
                # special case for not a nit file
                if path.file_extension != "nit" then
                        # search dirless files in known -I paths
-                       if path.dirname == "" then
+                       if path.dirname == "." then
                                var res = search_module_in_paths(null, path, self.paths)
                                if res != null then return res
                        end