|
@ -790,11 +790,11 @@ function loadModule (request, parent) { |
|
|
var parentIdPath = path.dirname(parent.id + |
|
|
var parentIdPath = path.dirname(parent.id + |
|
|
(path.filename(parent.filename).match(/^index\.(js|addon)$/) ? "/" : "")); |
|
|
(path.filename(parent.filename).match(/^index\.(js|addon)$/) ? "/" : "")); |
|
|
id = path.join(parentIdPath, request); |
|
|
id = path.join(parentIdPath, request); |
|
|
debug("RELATIVE: requested:"+request+" set ID to: "+id+" from "+parent.id+"("+parentIdPath+")"); |
|
|
// debug("RELATIVE: requested:"+request+" set ID to: "+id+" from "+parent.id+"("+parentIdPath+")");
|
|
|
paths = [path.dirname(parent.filename)]; |
|
|
paths = [path.dirname(parent.filename)]; |
|
|
} else { |
|
|
} else { |
|
|
id = request; |
|
|
id = request; |
|
|
debug("ABSOLUTE: id="+id); |
|
|
// debug("ABSOLUTE: id="+id);
|
|
|
paths = process.paths; |
|
|
paths = process.paths; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|