diff --git a/console/src/modules/path-finder.js b/console/src/modules/path-finder.js index e12037a26d..e3dd118537 100644 --- a/console/src/modules/path-finder.js +++ b/console/src/modules/path-finder.js @@ -29,7 +29,7 @@ exports.searchPaths = function(name, binaryType) { } else { // check directly beside the binary paths = [ - __dirname + "/" + name + extension, + process.execPath + "/" + name + extension, ]; // check if we're inside an app bundle on OS X