nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2df68
)
loader: identify_file use the absence of '/' for special behavior
author
Jean Privat
<jean@pryen.org>
Tue, 18 Aug 2015 12:20:08 +0000
(08:20 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 18 Aug 2015 12:20:08 +0000
(08:20 -0400)
Now `./standard` and `standard` have a different meaning
Signed-off-by: Jean Privat <jean@pryen.org>
src/loader.nit
patch
|
blob
|
history
diff --git
a/src/loader.nit
b/src/loader.nit
index
4e0e2e8
..
e748a39
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-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 not path.chars.has('/') then
var res = search_module_in_paths(null, path, self.paths)
if res != null then return res
end