Skip to content

Commit

Permalink
PATH editing only needed in Windows (#55)
Browse files Browse the repository at this point in the history
* PATH editing only needed in Windows

* DLL load works without in Windows, too
  • Loading branch information
native-api authored and skvark committed Dec 1, 2017
1 parent 83b0ac8 commit 424ec6a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cv2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import sys
import os
import importlib

# FFmpeg dll is not found on Windows without this
os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__))

# make IDE's (PyCharm) autocompletion happy
from .cv2 import *

Expand Down

0 comments on commit 424ec6a

Please sign in to comment.