10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01cf0c2 commit 3140bceCopy full SHA for 3140bce
cv2/__init__.py
@@ -1,8 +1,13 @@
1
import sys
2
import os
3
+import importlib
4
-# FFMPEG dll is not found on Windows without this
5
+# FFmpeg dll is not found on Windows without this
6
os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))
7
-from . import cv2
8
-sys.modules['cv2'] = cv2
+# make IDE's (PyCharm) autocompletion happy
9
+from .cv2 import *
10
+
11
+# wildcard import above does not import "private" variables like __version__
12
+# this makes them available
13
+globals().update(importlib.import_module('cv2.cv2').__dict__)
0 commit comments