From 1feabf42755a3c6011674b40aed9d735048c97fd Mon Sep 17 00:00:00 2001 From: Andrey Senyaev Date: Tue, 19 Jul 2022 13:52:29 +0300 Subject: [PATCH] Fixed an issue with a recursion of cv2 in python --- modules/python/package/cv2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/package/cv2/__init__.py b/modules/python/package/cv2/__init__.py index f8e631382c..086fc48dec 100644 --- a/modules/python/package/cv2/__init__.py +++ b/modules/python/package/cv2/__init__.py @@ -40,7 +40,7 @@ def bootstrap(): BINARIES_PATHS = [] g_vars = globals() - l_vars = locals() + l_vars = locals().copy() if sys.version_info[:2] < (3, 0): from . load_config_py2 import exec_file_wrapper