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
c6b92fa9
...
c6b92fa9b7153af0e71ad188203f64cbe53563ab
authored
2011-12-21 19:25:31 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
casperjs executable now gracefully exists on KeyboardInterrupt
1 parent
87f4d0bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
bin/casperjs
bin/casperjs
View file @
c6b92fa
...
...
@@ -14,4 +14,8 @@ CASPER_PATH = os.path.abspath(os.path.join(os.path.dirname(resolve(__file__)), '
CASPER_ARGS
=
[
'phantomjs'
,
os
.
path
.
join
(
CASPER_PATH
,
'casper.js'
),
'--casper-path=
%
s'
%
CASPER_PATH
,
'--cli'
]
CASPER_ARGS
.
extend
(
sys
.
argv
[
1
:])
subprocess
.
call
(
CASPER_ARGS
)
try
:
subprocess
.
call
(
CASPER_ARGS
)
except
KeyboardInterrupt
:
print
'
\n
CasperJS interrupted, exiting.'
sys
.
exit
()
...
...
Please
register
or
sign in
to post a comment