From 310c61a5cc5e89d81e001e071b2d72801268e72c Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 28 Sep 2020 20:03:27 +0100 Subject: [PATCH] check KIVY_BUILD env variable --- lbry/wallet/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index ebf9745ef..bd7439c5f 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -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