mirror of
https://github.com/codingo/Interlace.git
synced 2026-02-14 03:14:19 +01:00
Update threader.py
This commit is contained in:
@@ -4,7 +4,12 @@ from concurrent.futures import ThreadPoolExecutor
|
||||
from multiprocessing import Event
|
||||
from tqdm import tqdm
|
||||
|
||||
shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"
|
||||
import platform
|
||||
|
||||
if platform.system().lower() == 'linux':
|
||||
shell = os.getenv("SHELL") if os.getenv("SHELL") else "/bin/sh"
|
||||
else:
|
||||
shell = None
|
||||
|
||||
class Task(object):
|
||||
def __init__(self, command):
|
||||
|
||||
Reference in New Issue
Block a user