We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068a991 commit f62119bCopy full SHA for f62119b
Interlace/lib/threader.py
@@ -1,9 +1,10 @@
1
import subprocess
2
+import os
3
from concurrent.futures import ThreadPoolExecutor
4
from multiprocessing import Event
-
5
from tqdm import tqdm
6
7
+shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"
8
9
class Task(object):
10
def __init__(self, command):
@@ -49,7 +50,8 @@ def get_lock(self):
49
50
def _run_task(self, t=False):
51
s = subprocess.Popen(self.task, shell=True,
52
stdout=subprocess.PIPE,
- encoding="utf-8")
53
+ encoding="utf-8",
54
+ executable=shell)
55
out, _ = s.communicate()
56
57
if out != "":
0 commit comments