nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51fe409
)
loader: use `realpath` to implement `module_absolute_path`
author
Jean Privat
<jean@pryen.org>
Thu, 24 Sep 2015 15:03:51 +0000
(11:03 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 24 Sep 2015 15:03:51 +0000
(11:03 -0400)
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
e50f562
..
00d957a
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-534,7
+534,7
@@
redef class ModelBuilder
# Transform relative paths (starting with '../') into absolute paths
private fun module_absolute_path(path: String): String do
- return getcwd.join_path(path).simplify_path
+ return path.realpath
end
# Try to load a module AST using a path.