Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
3c03103e
...
3c03103e167ace69463ec02ee38a762e1e548918
authored
2012-02-09 12:34:03 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #49, #50 - fixed ordering of passed phantomjs native options
1 parent
bfd295f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
bin/casperjs
bin/casperjs
View file @
3c03103
...
...
@@ -27,15 +27,14 @@ PHANTOMJS_NATIVE_ARGS = [
CASPER_ARGS
=
[]
PHANTOMJS_ARGS
=
[]
found
=
False
for
arg
in
sys
.
argv
[
1
:]:
found
=
False
for
native
in
PHANTOMJS_NATIVE_ARGS
:
if
arg
.
startswith
(
'--
%
s'
%
native
):
PHANTOMJS_ARGS
.
append
(
arg
)
found
=
True
if
not
found
:
CASPER_ARGS
.
append
(
arg
)
found
=
False
CASPER_PATH
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
resolve
(
__file__
)),
'..'
))
CASPER_COMMAND
=
os
.
environ
.
get
(
'PHANTOMJS_EXECUTABLE'
,
'phantomjs'
)
.
split
(
' '
)
...
...
Please
register
or
sign in
to post a comment