mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
nice them too
This commit is contained in:
parent
c0e31851da
commit
81f82e8e9f
|
@ -324,6 +324,9 @@ class MTag(object):
|
||||||
for tagname, (binpath, timeout) in parsers.items():
|
for tagname, (binpath, timeout) in parsers.items():
|
||||||
try:
|
try:
|
||||||
cmd = [sys.executable, binpath, abspath]
|
cmd = [sys.executable, binpath, abspath]
|
||||||
|
if not WINDOWS:
|
||||||
|
cmd = ["nice"] + cmd
|
||||||
|
|
||||||
cmd = [fsenc(x) for x in cmd]
|
cmd = [fsenc(x) for x in cmd]
|
||||||
v = sp.check_output(cmd, env=env, timeout=timeout).strip()
|
v = sp.check_output(cmd, env=env, timeout=timeout).strip()
|
||||||
if v:
|
if v:
|
||||||
|
|
Loading…
Reference in a new issue