projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catching keyboard interrupt
[imago.git]
/
imago.py
diff --git
a/imago.py
b/imago.py
index
ff49826
..
552a359
100755
(executable)
--- a/
imago.py
+++ b/
imago.py
@@
-69,7
+69,7
@@
def main():
if verbose:
print >> sys.stderr, "edge detection"
if verbose:
print >> sys.stderr, "edge detection"
- im_edges = filters.edge_detection(im_l
, 2
)
+ im_edges = filters.edge_detection(im_l)
if show_all:
do_something(im_edges, "edge detection")
if show_all:
do_something(im_edges, "edge detection")
@@
-222,4
+222,8
@@
def intersections_from_angl_dist(lines, size):
return intersections
if __name__ == '__main__':
return intersections
if __name__ == '__main__':
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except KeyboardInterrupt:
+ print "Interrupted."
+ sys.exit()