未验证 提交 7319276b 编写于 作者: A Andrey Senyaev 提交者: GitHub

Merge pull request #577 from asenyaev/asen/fix_build_from_source

Fixed a build from the source
......@@ -9,3 +9,4 @@ recursive-include docker *
recursive-include opencv *
recursive-include opencv_contrib *
recursive-include patches *
recursive-include scripts *.py
......@@ -378,7 +378,7 @@ class RearrangeCMakeOutput(object):
print("Copying files from CMake output")
# add lines from the old __init__.py file to the config file
with open('scripts/__init__.py', 'r') as custom_init:
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'scripts', '__init__.py'), 'r') as custom_init:
custom_init_data = custom_init.read()
with open('%spython/cv2/config-%s.%s.py'
% (cmake_install_dir, sys.version_info[0], sys.version_info[1]), 'w') as opencv_init_config:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册