Skip to content

Commit c629563

Browse files
committed
Fix the import logic (from cv2 import cv2 does not work on py27)
1 parent c701f38 commit c629563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cv2/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import sys
2-
from cv2 import cv2
3-
sys.modules['cv2'] = cv2
2+
from . import cv2
3+
sys.modules['cv2'] = cv2

0 commit comments

Comments
 (0)