nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c4ffa
)
modulebuilder: module_absolute_path does always its job
author
Jean Privat
<jean@pryen.org>
Fri, 7 Feb 2014 14:38:48 +0000
(09:38 -0500)
committer
Jean Privat
<jean@pryen.org>
Fri, 7 Feb 2014 14:38:48 +0000
(09:38 -0500)
This allow to climb-up directories to look for a project
Signed-off-by: Jean Privat <jean@pryen.org>
src/modelbuilder.nit
patch
|
blob
|
history
diff --git
a/src/modelbuilder.nit
b/src/modelbuilder.nit
index
4e1474d
..
76a22e3
100644
(file)
--- a/
src/modelbuilder.nit
+++ b/
src/modelbuilder.nit
@@
-420,10
+420,7
@@
class ModelBuilder
# Transform relative paths (starting with '../') into absolute paths
private fun module_absolute_path(path: String): String do
- if path.has_prefix("..") then
- return getcwd.join_path(path).simplify_path
- end
- return path
+ return getcwd.join_path(path).simplify_path
end
# loaded module by absolute path