Skip to content

Commit 8419c86

Browse files
authored
Update threader.py
1 parent f62119b commit 8419c86

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Interlace/lib/threader.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
from multiprocessing import Event
55
from tqdm import tqdm
66

7-
shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"
7+
import platform
8+
9+
if platform.system().lower() == 'linux':
10+
shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"
11+
else:
12+
shell = None
813

914
class Task(object):
1015
def __init__(self, command):

0 commit comments

Comments
 (0)