mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
use the config dirname, not the full path to the config file
This commit is contained in:
parent
9a7b9efe14
commit
c2c163297e
@ -119,7 +119,7 @@ exports.getResourcePath = function(filepath, filename) {
|
||||
}
|
||||
|
||||
// absolute paths are normalized by path.resolve on the first pass
|
||||
[global.env.opts.configure, env.pwd, env.dirname].forEach(function(_path) {
|
||||
[path.dirname(global.env.opts.configure || ''), env.pwd, env.dirname].forEach(function(_path) {
|
||||
if (!result && _path) {
|
||||
_path = path.resolve(_path, filepath);
|
||||
if ( pathExists(_path) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user