Skip to content

Commit 810ca4e

Browse files
committed
Fixed a build from the source
1 parent 84bfd76 commit 810ca4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ recursive-include docker *
99
recursive-include opencv *
1010
recursive-include opencv_contrib *
1111
recursive-include patches *
12+
recursive-include scripts *.py

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ def _classify_installed_files_override(
378378
print("Copying files from CMake output")
379379

380380
# add lines from the old __init__.py file to the config file
381-
with open('scripts/__init__.py', 'r') as custom_init:
381+
with open('%s/scripts/__init__.py'
382+
% os.path.split(os.path.abspath(__file__))[0], 'r') as custom_init:
382383
custom_init_data = custom_init.read()
383384
with open('%spython/cv2/config-%s.%s.py'
384385
% (cmake_install_dir, sys.version_info[0], sys.version_info[1]), 'w') as opencv_init_config:

0 commit comments

Comments
 (0)