-
Notifications
You must be signed in to change notification settings - Fork 869
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import sys | ||
import os | ||
import importlib | ||
|
||
# FFMPEG dll is not found on Windows without this | ||
# FFmpeg dll is not found on Windows without this | ||
os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__)) | ||
|
||
from . import cv2 | ||
sys.modules['cv2'] = cv2 | ||
# make IDE's (PyCharm) autocompletion happy | ||
from .cv2 import * | ||
|
||
# wildcard import above does not import "private" variables like __version__ | ||
# this makes them available | ||
globals().update(importlib.import_module('cv2.cv2').__dict__) |