use dirname of executable path

This commit is contained in:
Stephen Birarda 2016-01-07 17:47:23 -08:00
parent 39e95837ec
commit 5ccf59dae9

View file

@ -30,7 +30,7 @@ exports.searchPaths = function(name, binaryType) {
} else {
// check directly beside the binary
paths = [
path.join(process.execPath, name + extension)
path.join(path.dirname(process.execPath), name + extension)
];
// check if we're inside an app bundle on OS X