Solve the import issue in Python2.

pull/14816/head
gal0is 6 years ago
parent 1f519eea89
commit bb7dc5f992
  1. 2
      modules/python/package/cv2/__init__.py

@ -39,7 +39,7 @@ def bootstrap():
l_vars = locals()
if sys.version_info[:2] < (3, 0):
from cv2.load_config_py2 import exec_file_wrapper
from . load_config_py2 import exec_file_wrapper
else:
from . load_config_py3 import exec_file_wrapper

Loading…
Cancel
Save