use process.execPath

This commit is contained in:
Gopal V 2013-02-13 12:27:04 -05:00 committed by Artur
parent f19e0dedd8
commit 42335307b9

View File

@ -1770,7 +1770,7 @@ function execSync(cmd, opts) {
if (fs.existsSync(codeFile)) _unlinkSync(codeFile);
fs.writeFileSync(scriptFile, script);
child.exec('node '+scriptFile, {
child.exec('"'+process.execPath+'" '+scriptFile, {
env: process.env,
cwd: exports.pwd()
});