From 81f82e8e9f0f8056ddb057f8ff5c8334642f9966 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 19 Mar 2021 21:28:10 +0100 Subject: [PATCH] nice them too --- copyparty/mtag.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/mtag.py b/copyparty/mtag.py index c3fffd21..5fa1b79a 100644 --- a/copyparty/mtag.py +++ b/copyparty/mtag.py @@ -324,6 +324,9 @@ class MTag(object): for tagname, (binpath, timeout) in parsers.items(): try: cmd = [sys.executable, binpath, abspath] + if not WINDOWS: + cmd = ["nice"] + cmd + cmd = [fsenc(x) for x in cmd] v = sp.check_output(cmd, env=env, timeout=timeout).strip() if v: