提交 3140bce9 编写于 作者: O Olli-Pekka Heinisuo

update import behaviour

上级 01cf0c2d
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__)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册