From 82706d8ea2210cd8c96d89cb882fb0d809e836e0 Mon Sep 17 00:00:00 2001 From: io Date: Wed, 7 Jul 2021 04:02:41 +0000 Subject: [PATCH] fix RuntimeWarning from utils.image subprocs --- utils/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/__init__.py b/utils/__init__.py index f6d830d..af5395c 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -5,6 +5,8 @@ from . import archive from . import emote from . import errors from . import paginator -from . import emote_client # note: do not import .image in case the user doesn't want it # since importing image can take a long time. +# Do not import .emote_client, either, because otherwise running python -m utils.image +# will cause utils.image to appear in sys.modules after import of package 'utils' but +# prior to execution of 'utils.image' which may result in unpredictable behavior.