Skip to content

Commit 9d43f84

Browse files
Rearranged path modification
1 parent 8884bec commit 9d43f84

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cv2/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import sys
22
import os
33

4-
# FFMPEG dll is not found on Windows without this
5-
#os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))
6-
74
from . import cv2
85
sys.modules['cv2'] = cv2
6+
7+
8+
# FFMPEG dll is not found on Windows without this
9+
os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))

0 commit comments

Comments
 (0)