From 7927979298644923cf02ad6c757c3d7c209e365a Mon Sep 17 00:00:00 2001 From: Rico Sennrich Date: Tue, 28 Feb 2012 10:05:30 +0100 Subject: [PATCH] use specified tmpdir when sorting --- contrib/tmcombine/tmcombine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/tmcombine/tmcombine.py b/contrib/tmcombine/tmcombine.py index f1a6726df..81a3afbff 100755 --- a/contrib/tmcombine/tmcombine.py +++ b/contrib/tmcombine/tmcombine.py @@ -1262,6 +1262,8 @@ def sort_file(filename,tempdir=None): cmd = ['sort', filename] env = {} env['LC_ALL'] = 'C' + if tempdir: + cmd.extend(['-T',tempdir]) outfile = NamedTemporaryFile(delete=False,dir=tempdir) sys.stderr.write('LC_ALL=C ' + ' '.join(cmd) + ' > ' + outfile.name + '\n')