diff --git a/lib/jsdoc/path.js b/lib/jsdoc/path.js index e72d19e0..0c1a3849 100644 --- a/lib/jsdoc/path.js +++ b/lib/jsdoc/path.js @@ -117,9 +117,9 @@ exports.getResourcePath = function(filepath, filename) { return true; } - // first, try resolving it relative to the current working directory (or just normalize it - // if it's an absolute path) - result = path.resolve(filepath); + // first, try resolving it relative to the working directory (or just normalize it if it's an + // absolute path) + result = path.resolve(process.env.PWD, filepath); if ( !pathExists(result) ) { // next, try resolving it relative to the JSDoc directory result = path.resolve(env.dirname, filepath);