From 7bd81f80291e7b4458f585b4171a2ae5c660f7e6 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 21 Oct 2020 12:38:18 +0200 Subject: set tmpdir --- fuzzycat/cluster.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fuzzycat/cluster.py b/fuzzycat/cluster.py index 746aa22..c6d3829 100644 --- a/fuzzycat/cluster.py +++ b/fuzzycat/cluster.py @@ -151,8 +151,12 @@ def main(): parser.add_argument("-t", "--type", default="title", help="clustering variant to use") parser.add_argument("-l", "--list", action="store_true", help="list cluster variants") parser.add_argument("--tmp-prefix", default="fuzzycat-", help="prefix for tmp file") + parser.add_argument("--tmpdir", default=tempfile.gettempdir(), help="temp directory") parser.add_argument('files', metavar='FILE', nargs='*', help='files to read, if empty, stdin is used') args = parser.parse_args() + + tempfile.tempdir = args.tmpdir + if args.list: print("\n".join(types.keys())) return -- cgit v1.2.3