Fixed an issue with a recursion of cv2 in python
authorAndrey Senyaev <andrey.senyaev@gmail.com>
Tue, 19 Jul 2022 10:52:29 +0000 (13:52 +0300)
committerAndrey Senyaev <andrey.senyaev@gmail.com>
Tue, 19 Jul 2022 10:52:29 +0000 (13:52 +0300)
modules/python/package/cv2/__init__.py

index f8e631382c7b2649bbfa12e4a39642271c5c5af2..086fc48dec5a7a68c7a9a512252d584ee42989a9 100644 (file)
@@ -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