From 7ccf2dd59259bda5bd058600f3b2928304c66bfe Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sun, 23 Oct 2011 23:26:26 +0200 Subject: osmux: don't truncate output file --- scripts/osmux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/osmux.py b/scripts/osmux.py index 88e43ae..cf150ea 100644 --- a/scripts/osmux.py +++ b/scripts/osmux.py @@ -96,7 +96,7 @@ if params.step <= 0: print('Value for --pause must be > 0. Exiting.', file=stderr) exit(1) try: - open(params.outfile, mode='w', encoding='utf-8') + open(params.outfile, mode='wa', encoding='utf-8') except IOError as e: (errno, strerror) = e.args print('Failed to open output file for writing: %s. Exiting.' % strerror, file=stderr) -- cgit v1.2.1