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
a4b5c575
...
a4b5c5751d9f36c1495f75542aa46417f0db3bbf
authored
2012-01-15 09:06:16 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed casperjs executable could not handle a PHANTOMJS_EXECUTABLE containing spaces
1 parent
66a880f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
bin/casperjs
bin/casperjs
View file @
a4b5c57
...
...
@@ -10,9 +10,10 @@ def resolve(path):
return
resolve
(
os
.
readlink
(
path
))
return
path
PHANTOMJS_EXEC
=
os
.
environ
.
get
(
'PHANTOMJS_EXECUTABLE'
,
'phantomjs'
)
PHANTOMJS_EXEC
=
os
.
environ
.
get
(
'PHANTOMJS_EXECUTABLE'
,
'phantomjs'
)
.
split
(
' '
)
CASPER_PATH
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
resolve
(
__file__
)),
'..'
))
CASPER_ARGS
=
[
PHANTOMJS_EXEC
,
os
.
path
.
join
(
CASPER_PATH
,
'bin'
,
'bootstrap.js'
),
'--casper-path=
%
s'
%
CASPER_PATH
,
'--cli'
]
CASPER_ARGS
=
PHANTOMJS_EXEC
CASPER_ARGS
.
extend
([
os
.
path
.
join
(
CASPER_PATH
,
'bin'
,
'bootstrap.js'
),
'--casper-path=
%
s'
%
CASPER_PATH
,
'--cli'
])
CASPER_ARGS
.
extend
(
sys
.
argv
[
1
:])
try
:
...
...
Please
register
or
sign in
to post a comment