Update threader.py

This commit is contained in:
abdallaEG
2021-05-06 07:45:25 +02:00
committed by GitHub
parent f62119b8f8
commit 8419c86d74

View File

@@ -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):