aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-10-21 12:38:18 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-10-21 12:38:18 +0200
commit7bd81f80291e7b4458f585b4171a2ae5c660f7e6 (patch)
tree90f37f058288e49fcac5124f73d401fbcabbd5bc
parent9114522696f1d576c7f5661034b0d73353c1e49a (diff)
downloadfuzzycat-7bd81f80291e7b4458f585b4171a2ae5c660f7e6.tar.gz
fuzzycat-7bd81f80291e7b4458f585b4171a2ae5c660f7e6.zip
set tmpdir
-rw-r--r--fuzzycat/cluster.py4
1 files changed, 4 insertions, 0 deletions
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