check KIVY_BUILD env variable

This commit is contained in:
Akinwale Ariwodola 2020-09-28 20:03:27 +01:00 committed by Lex Berezhny
parent 318cc15323
commit 310c61a5cc

View file

@ -62,7 +62,7 @@ def run_read_only_fetchone(sql, params):
raise
if platform.system() == 'Windows' or 'ANDROID_ARGUMENT' in os.environ:
if platform.system() == 'Windows' or 'ANDROID_ARGUMENT' or 'KIVY_BUILD' in os.environ:
ReaderExecutorClass = ThreadPoolExecutor
else:
ReaderExecutorClass = ProcessPoolExecutor