Suggestion for an FAQ entry

24 views
Skip to first unread message

Axel Rauschmayer

unread,
Jun 3, 2013, 9:20:22 PM6/3/13
to casp...@googlegroups.com
It might make sense to add this FAQ entry: “How do I load a local file, via a path relative to the current script”.

I looked at __file__ and Phantom’s fs module, but eventually found a really simple solution: just use a relative path for casper.start(). For example:
    casper.start('reveal.html');


Nicolas Perriault

unread,
Jun 6, 2013, 8:53:17 AM6/6/13
to casp...@googlegroups.com
On Tue, Jun 4, 2013 at 3:20 AM, Axel Rauschmayer <raus...@gmail.com> wrote:

> It might make sense to add this FAQ entry: “How do I load a local file, via
> a path relative to the current script”.

Well I thought it was obvious, but that's probably because I know
phantom quite well.

Could you please file an issue about this?

Thanks

--
Nicolas Perriault
https://nicolas.perriault.net/
Phone: +33 (0) 660 92 08 67
Reply all
Reply to author
Forward
0 new messages