diff options
author | Christian Franke <nobody@nowhere.ws> | 2011-10-23 23:26:26 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2011-10-23 23:26:26 +0200 |
commit | 7ccf2dd59259bda5bd058600f3b2928304c66bfe (patch) | |
tree | 4ab55cbddc1ca05a7dc1d5b1e1a1ca8eb8bd1b97 /scripts | |
parent | 4b441c728e5e0a92f9d51fba3e7992ab0fe09883 (diff) |
osmux: don't truncate output file
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/osmux.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |