From 5ccf59dae9f190d5ca9a10e7234850551ada3cbc Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 7 Jan 2016 17:47:23 -0800 Subject: [PATCH] use dirname of executable path --- console/src/modules/path-finder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/src/modules/path-finder.js b/console/src/modules/path-finder.js index e126af1358..ce4d4e350f 100644 --- a/console/src/modules/path-finder.js +++ b/console/src/modules/path-finder.js @@ -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