Merge branch 'master' of github.com:jsdoc3/jsdoc

This commit is contained in:
Michael Mathews 2012-05-30 21:14:00 +01:00
commit 4c85e313bc

View File

@ -113,7 +113,12 @@ function dump() {
*/
function include(filepath) {
try {
load(__dirname + '/' + filepath);
if (filepath.indexOf('/') === 0) {
load(filepath);
}
else {
load(__dirname + '/' + filepath);
}
}
catch (e) {
console.log('Cannot include "' + __dirname + '/' + filepath + '": '+e);