Skip to content

Run PhantomJS binary from PATH rather than absolute path#4

Open
tutley wants to merge 2 commits intok4s:masterfrom
tutley:master
Open

Run PhantomJS binary from PATH rather than absolute path#4
tutley wants to merge 2 commits intok4s:masterfrom
tutley:master

Conversation

@tutley
Copy link

@tutley tutley commented Jan 28, 2017

I really like this package, but I don't like how it includes the PhantomJS binary. I think this is a great idea though so I want to try and use it in a website. So, I changed the phantomjsPath to simply "phantomjs" meaning it gets executed by searching the environment's PATH variable. I have phantom installed in /usr/local/bin which is a part of my path, but in other machines it might be installed somewhere else, so using the absolute path doesn't make sense. Also, you don't want to have to be responsible for maintaining the PhantomJS library in the repository, or for including a binary for every architecture.

@k4s
Copy link
Owner

k4s commented Feb 9, 2017

thx for your pull request,but i think about the same,so change it when you need .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants