From 5e48971cb51fe5570d8610303929f54fdc14e0af Mon Sep 17 00:00:00 2001 From: Clement Kerneur Date: Mon, 22 May 2017 22:58:22 +0400 Subject: [PATCH] README fix exec example Into the readme the second example not run directly via subfolders. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04e2d952f..932325368 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Or `exec()` method is also provided for convenience: ```javascript var phantomjs = require('phantomjs-prebuilt') -var program = phantomjs.exec('phantomjs-script.js', 'arg1', 'arg2') +var program = phantomjs.exec(__dirname+'/phantomjs-script.js', 'arg1', 'arg2') program.stdout.pipe(process.stdout) program.stderr.pipe(process.stderr) program.on('exit', code => {