Skip to content

Commit

Permalink
[bin] Use process.execPath instead of process.argv[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Feb 24, 2012
1 parent 1d06e90 commit 6b803ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function importSuites(files) {
f = cwdname(f);
return function (options, callback) {
var args = [process.argv[1], '--json', '--supress-stdout', f],
p = spawn(process.argv[0], args),
p = spawn(process.execPath, args),
result;

p.on('exit', function (code) {
Expand Down

0 comments on commit 6b803ab

Please sign in to comment.