From: Mark Wooding Date: Wed, 17 Dec 2008 12:50:29 +0000 (+0000) Subject: xcatch: Fix stupid errors in file-watching. X-Git-Tag: 1.4.1~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/xtoys/commitdiff_plain/d174a250b75d50d5b2360d2bcb4028ace37ee32c?ds=sidebyside xcatch: Fix stupid errors in file-watching. --- diff --git a/xcatch.in b/xcatch.in index 5c940f1..d6e51d1 100644 --- a/xcatch.in +++ b/xcatch.in @@ -404,8 +404,8 @@ def main(): name = '' catcher.watch_file(stdin) else: - name = file - catcher.watch(open(opts.file, 'r')) + name = opts.file + catcher.watch_file(open(opts.file, 'r')) elif len(args) == 0: name = '' catcher.watch_file(stdin)