Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added comments for new changes
  • Loading branch information
asenyaev committed Oct 15, 2021
commit 545fe24728bfee7e0092d0e37dbdd0371bb1c2d8
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def _classify_installed_files_override(

print("Copying files from CMake output")

# need for the proper import of a package
with open('%spython/cv2/__init__.py'
% cmake_install_dir, 'r') as opencv_init:
opencv_init_data = ""
Expand All @@ -386,6 +387,7 @@ def _classify_installed_files_override(
% cmake_install_dir, 'w') as opencv_python_init:
opencv_python_init.write(opencv_init_data)

# add lines from the old __init__.py file to the config file
with open('scripts/__init__.py', 'r') as custom_init:
custom_init_data = custom_init.read()
with open('%spython/cv2/config-%s.%s.py'
Expand Down