use the config dirname, not the full path to the config file

This commit is contained in:
Jeff Williams 2013-12-01 10:01:18 -08:00
parent 9a7b9efe14
commit c2c163297e

View File

@ -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) ) {