Skip to content

Commit

Permalink
Update threader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alanEG authored May 2, 2021
1 parent 068a991 commit f62119b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Interlace/lib/threader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import subprocess
import os
from concurrent.futures import ThreadPoolExecutor
from multiprocessing import Event

from tqdm import tqdm

shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"

class Task(object):
def __init__(self, command):
Expand Down Expand Up @@ -49,7 +50,8 @@ def get_lock(self):
def _run_task(self, t=False):
s = subprocess.Popen(self.task, shell=True,
stdout=subprocess.PIPE,
encoding="utf-8")
encoding="utf-8",
executable=shell)
out, _ = s.communicate()

if out != "":
Expand Down

0 comments on commit f62119b

Please sign in to comment.