Files
node-v0.x-archive/test/simple/test-executable-path.js
Ryan Dahl ba792ea202 :%s/sys.puts/console.log/g
and there was much rejoicing
2010-06-23 20:05:29 -07:00

20 lines
493 B
JavaScript

require("../common");
path = require("path");
isDebug = (process.version.indexOf('debug') >= 0);
nodePath = path.join(__dirname,
"..",
"..",
"build",
isDebug ? 'debug' : 'default',
isDebug ? 'node_g' : 'node');
nodePath = path.normalize(nodePath);
console.log('nodePath: ' + nodePath);
console.log('process.execPath: ' + process.execPath);
assert.equal(nodePath, process.execPath);