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: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/xtoys/commitdiff_plain/d174a250b75d50d5b2360d2bcb4028ace37ee32c?hp=58b5e33d371e4b566fd59a93003f9d6dfcb3b8ed 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)