queue availability check

This commit is contained in:
Roman Hergenreder 2020-10-07 14:09:32 +02:00
parent fcb562e6df
commit 5046360a1d
2 changed files with 2 additions and 2 deletions

@ -9,7 +9,7 @@ from importlib import util
threading_spec = util.find_spec("threading")
queue_spec = util.find_spec("queue")
if threading_spec is not None:
if threading_spec is not None and queue_spec is not None:
import threading
import queue
NUM_THREADS = 10

@ -8,7 +8,7 @@ from importlib import util
threading_spec = util.find_spec("threading")
queue_spec = util.find_spec("queue")
if threading_spec is not None:
if threading_spec is not None and queue_spec is not None:
import threading
import queue
NUM_THREADS = 10